reverse a string in java script programs code example Example: js revers string fucntion return str.split("").reverse().join("");