7

Day 1 Challenge

 3 years ago
source link: https://dev.to/hellodevworldblog/day-1-challenge-4eb3
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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 modeExit 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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK