DML School of Technology
Menu

Stretch, Strings

Palindromes

The task

A palindrome reads the same forwards and backwards. Ignore capital letters and spaces: "Never odd or even" is a palindrome.

Write a function called isPalindrome.

Tests

CallExpectedYours
isPalindrome("Racecar") true not run
isPalindrome("Never odd or even") true not run
isPalindrome("Lagos") false not run
isPalindrome("a") true not run

Next challenge · All challenges

solution.js

Tab indents. To leave the editor, press Escape, then Tab.

Output

Run prints what your code prints. Run the tests to check your function.