how to revert a string in js code example Example: js revers string fucntion return str.split("").reverse().join("");