Skip to content

Instantly share code, notes, and snippets.

@codeperfectplus
Created September 10, 2023 14:47
Show Gist options
  • Select an option

  • Save codeperfectplus/b828fe392acf4f07da957c4e740ff731 to your computer and use it in GitHub Desktop.

Select an option

Save codeperfectplus/b828fe392acf4f07da957c4e740ff731 to your computer and use it in GitHub Desktop.
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