Skip to content

Instantly share code, notes, and snippets.

@darksh3ll
Created January 17, 2019 11:11
Show Gist options
  • Save darksh3ll/4869a04bae56f2e40da8f8159d725a4b to your computer and use it in GitHub Desktop.
Save darksh3ll/4869a04bae56f2e40da8f8159d725a4b to your computer and use it in GitHub Desktop.
const str = "bob";
const newStr = str.split("").reverse().join("") //massi
const result = str === newStr? "PALINDROME":"NO PALINDROME"
console.log(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment