Created
August 7, 2020 19:00
-
-
Save Neptune998/fac2ea2025d39ae99b97b6dc3bb25956 to your computer and use it in GitHub Desktop.
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(s) { | |
try{ | |
console.log(s.split('').reverse().join('')); | |
} | |
catch(e){ | |
console.log(e.message); | |
console.log(s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment