Hexlet doesn not really work properly in your browser, because it is pretty old.
Please, upgrade. Choose browser.

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

isPalindrome.js

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

import isPalindrome from './isPalindrome';

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

Hints

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%