+ 1

☆☆[challenge]☆☆

Ask the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.) example of palindrome: laval 2nd example: elu par cette crapule so you must take care about sentences, check out my code to test https://code.sololearn.com/c9ggUFw0DURK/?ref=app

21st Oct 2017, 11:41 AM
khalil ayoub
khalil ayoub - avatar
6 Answers
+ 16
JavaScript: var a = prompt(""); alert(a === a.split("").reverse().join(""));
21st Oct 2017, 11:46 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
21st Oct 2017, 11:47 AM
Kartikey Sahu
Kartikey Sahu - avatar
+ 2
https://code.sololearn.com/cR80PQie4S8s/?ref=app My simple code.
21st Oct 2017, 3:32 PM
Prajwal Gowda
Prajwal Gowda - avatar
21st Oct 2017, 12:34 PM
VcC
VcC - avatar
9th Dec 2017, 11:24 AM
Jonathan Álex
Jonathan Álex - avatar