get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
thecodingaviator on master
remove A (#31157) (compare)
:star: 616 | @abhisekp | http://www.freecodecamp.com/abhisekp
:star: 368 | @jedpimentel | http://www.freecodecamp.com/jedpimentel
You have to check if the string you get as an input is a palindrome and return true
if it is, and false
otherwise.
:pencil: read more about bonfire check for palindromes on the FCC Wiki
function palindrome(str) {
var newstr = str.toLowerCase('');
var array = newstr.split('').reverse().join('');
if newstr == array;
return true;
else
return false;
}
palindrome("eye");
:star: 205 | @bruglesco | http://www.freecodecamp.com/bruglesco