Easy javascript

Reverse a string

Problem

Reverse "Toolliyo" without using reverse() on the array.

Hints
  • Loop from length-1 down to 0

Your practice code

Ready — edit the code above and click Run.

Solution

const s = "Toolliyo";
let out = "";
for (let i = s.length - 1; i >= 0; i--) out += s[i];
console.log(out);

Try solving on your own first, then reveal the official answer.

Explanation

Manual loop shows you understand indices—common whiteboard task.

Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details