Advertisement
Mvelchev

Untitled

May 25th, 2022
1,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function reverse(str){
  2.    const newStr = str.split('').reverse().join('');
  3.   console.log(newStr);
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement