Created
June 25, 2021 13:21
-
-
Save fajarwz/6cbb02c2da74c241632aa99b0c95df4d to your computer and use it in GitHub Desktop.
Reverse String using JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reverseString(str) { | |
return str.split('').reverse().join(''); | |
} | |
console.log(reverseString('ya ndak tau')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment