open_in_new
content_copy
let reversedStr = str.split("").reverse().join("");