Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Palindrome
function Palindrome (x){ var z=false; var a =[]; for(j=0;j<x.length;j++){ if(x[j] != ' '){ a.push(x[j]) } } for(i=0;i<a.length-(i+1);i++){ if(a[i] == a[a.length-(i+1)]){ z=true; } else{ z=false; break } } if(z){ print("Its palindrome") } else { print("Its not palindrome") } } Palindrome("gss l ssg");
run
|
edit
|
history
|
help
1
Star wars ep 3. limit
oneAway
my dick!!!
Time Waister
More testing with JS
Узнать значени синуса в радианах
SetofStacks
WC
Java - Looping thru Strings
Functions