Codeloft
0 0 XP

Palindrome check

Easy 30 XP

Write isPalindrome(word) that returns true when the word reads the same backwards, ignoring capital letters.

Tests

0 of 4 pass
  1. isPalindrome("level") → true
  2. isPalindrome("Racecar") → true
  3. isPalindrome("hello") → false
  4. isPalindrome("a") → true
isPalindrome.jsPress Run or Ctrl + Enter
Nothing printed. Use console.log to inspect values.