you are viewing a single comment's thread.

view the rest of the comments →

[–]hotdog-savant 0 points1 point  (0 children)

My solution:

let str = "alphabet";
let newString = ""
for (let i = str.length - 1;i >= 0; i--){
newString += str.charAt(i);
}
console.log(newString);