does charat return backwards javascript code example
Example 1: js revers string fucntion
return str.split("").reverse().join("");
Example 2: reverse string js
const solution = (str) => str.split("").reverse().join("");
return str.split("").reverse().join("");
const solution = (str) => str.split("").reverse().join("");