javascript reverse a string with a for loop code example Example: reverse string javascript const reverse = (str) => str.split("").reverse().join("");