Menu
Coddy logo textTech

2. Palindrome Check

Lesson 3 of 31 in Coddy's 30 Days of Logic Building in Javascript course.

challenge icon

Challenge

Easy

Write a function that checks if a given string is a palindrome.

  • Input: <strong>"level"</strong>
  • Output: <strong>true</strong>

Try it yourself

function isPalindrome(str) {
    // write your code below
    
}

All lessons in 30 Days of Logic Building in Javascript

Practice on your own: Online JavaScript compiler