DEV Community

loading...
Cover image for Day 1 Challenge

Day 1 Challenge

hellodevworldblog profile image Hello Dev World Blog Originally published at hellodevworld.com ・1 min read

The Problem

Create a function that accepts a string and returns if it is a palindrome.

Example:

      isPalindrome('Red rum, sir, is murder') //true
      isPalindrome('No lemon, no melon') //true
      isPalindrome('Eva, can I see bees in a cave?') //true
      isPalindrome('My dogs are adorable') //false
      isPalindrome('I come in peace!') //false
      isPalindrome("Racecar") //true
      isPalindrome("HelloDevWorld") //false
      isPalindrome(9119) //true
      isPalindrome(12345) //false
Enter fullscreen mode Exit fullscreen mode

If you would like the challenges emailed to you every morning subscribe here. I will post the challenges on my blog and send out an email at 7am every morning and will post the solution and send an email for the solution at 6pm every night. I will also be posting a video on my YouTube channel for each challenge so subscribe there so you don't miss one!

I can't turn off commenting so please do not comment your solution on this post I will post a solution later tonight and you can post it there. If people cannot follow this I will not post the challenge on this platform and will only post the solutions.

Discussion (0)

pic
Editor guide