scrimba
JS Challenges
Challenge - Palindromes
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Challenge - Palindromes
Expand for more info
index.js
run
preview
console
/* 
Palindromes are words that are the same forward or backward. For example,
the words "noon" and "kayak" are a palindromes.

Write a function to check if a lowercased string of letters is a palindrome.
If the word is palindrome, return true. If it isn't, return false.

Example input: "motorbike"
Example output: false

Example input: "rotator"
Example output: true
*/

function isPalindrome(str){

}

// Test your function
console.log(isPalindrome("abba"));
console.log(isPalindrome("civic"));
console.log(isPalindrome("octopus"));
console.log(isPalindrome("pumpkins"));
console.log(isPalindrome("madam"));
Console
undefined
,
undefined
,
undefined
,
undefined
,
undefined
,
/index.html
-1:18