Skip to content

Instantly share code, notes, and snippets.

@darksh3ll
Last active June 14, 2018 18:34
Show Gist options
  • Save darksh3ll/8bba915ca26eaa7bd08740bd9d02879f to your computer and use it in GitHub Desktop.
Save darksh3ll/8bba915ca26eaa7bd08740bd9d02879f to your computer and use it in GitHub Desktop.
const mot = "nicolewrobel";
let motInverse = "";
for (let i = 0; i < mot.length; i++) {
motInverse = mot[i] + motInverse;
}
if (mot === motInverse) {
console.log("Palindrone")
}else {
console.log("no palindrone")
}
console.log(motInverse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment