0 / 60 seg.

What will be the output of the following recursive function?

function isPalindrome(str) {
  if (str.length <= 1) {
    return true;
  }
  let firstChar = str.charAt(0);
  let lastChar = str.charAt(str.length - 1);
  let remainingStr = str.substr(1, str.length - 2);
  return firstChar === lastChar && isPalindrome(remainingStr);
}
console.log(isPalindrome("racecar"));