Three Ways to Reverse a String in JavaScript

PHOTO EMBED

Wed Feb 09 2022 11:19:01 GMT+0000 (Coordinated Universal Time)

Saved by @jrsl

function reverseString(str) {
    return str.split("").reverse().join("");
}
reverseString("hello");
content_copyCOPY

https://www.freecodecamp.org/news/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb/