DEV Community

Discussion on: Algorithm 101: 6 Ways to Check if a Word is a Palindrome

Collapse
 
nkemjiks profile image
Mbonu Blessing

Nice one. I think just doing

return new word === lowerCasedWord

Should work for the if statement and return false line

Collapse
 
ebereplenty profile image
NJOKU SAMSON EBERE

Thank you Blessing. I will definitely check that out

Collapse
 
ebereplenty profile image
NJOKU SAMSON EBERE

In fact, I just did and I love the simplicity

dev-to-uploads.s3.amazonaws.com/i/...