Write a Palindrome Check function in JavaScript using string and array methods

Share this video with your friends

Send Tweet

In this lesson you will learn how to answer a typical beginner interview question of writing a function that check for a string to be a palindrome(reads the same backward as forward).

We will employ string methods like split() and toLowerCase() as well as array methods like reverse() and join(). After writing a step by step function to perform the check we refactor it to be shorter but still readable and working.

Piyush Chatterjee
~ 4 years ago

sound is very low..