reverse words in string array javascript code example Example: reverse string js const solution = (str) => str.split("").reverse().join("");