to write a program to convert a string (eg: "My name is Murari Gupta" to =:> "Gupta Murari is name My" && =:> "atpuG iraruM si eman yM") let names = "My name is Murari Gupta"; let arr1 = names.split(" "); let arr11 = arr1.reverse() console.log(arr11.join(" ")) let arr2 = names.split("") let arr22 = arr2.reverse() console.log(arr22.join(""))