Solution-1--solution options for reverse bits algorithm js
functionreverseString(string){//convert the string to an arraylet array = string.split("");//Use the reverse method
array.reverse()//Convert it back to a string and returnreturn array.join("")}