Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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