revers all word in an array javascript code example Example: reverse string javascript const reverse = (str) => str.split("").reverse().join("");