darksh3ll
6/11/2018 - 12:41 PM

Palindrome.js

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)