DEV Community

Mikayil
Mikayil

Posted on • Edited on

isPalindrome?

Inspired by a video on YouTube, I decided to write a simple function to check whether a word is a palindrome or not.

const isPalindrome = palWord => 
palWord === palWord.split("").reverse().join("")
Enter fullscreen mode Exit fullscreen mode

Top comments (0)