Last active
June 14, 2018 18:34
-
-
Save darksh3ll/8bba915ca26eaa7bd08740bd9d02879f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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