+ 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
6 RĂ©ponses
+ 16
JavaScript:
var a = prompt("");
alert(a === a.split("").reverse().join(""));
+ 2
https://code.sololearn.com/cR80PQie4S8s/?ref=app
My simple code.
0
One liner function
https://code.sololearn.com/cz1O1S9Rg6xp/?ref=app
0
Here are my new tries, now using Python:
https://code.sololearn.com/ckzKZUhvplvr/?ref=app
https://code.sololearn.com/cdb28fBq2f90/?ref=app