A palindrome is a number or a string that reads the same way backwards and forwards. For example, "radar", "a santa at nasa"


Implement and export as default a function isPalindrome. Use recursion.

import isPalindrome from './isPalindrome';

isPalindrome('radar'); // true
isPalindrome('a');     // true
isPalindrome('abs');   // false


Use the length value to find out the length of a string:

'hello'.length; // 5

Use the substr method to get a substring:

'hello'.substr(0, 4); // "hell"
Start challenge Successful completion: 87%