Palindrome Solution JavaScript // Day 1 of 365 Days of Coding Challenge //JavaScript Challenge 1

preview_player
Показать описание
The palindrome developer interview question is popular question that is asked in a lot of junior and mid level developer interviews. Here are some possible JavaScript solutions for palindromes with punctuation, numbers, and spaces with an explanation of what they are and which is the best. Day 1 of 365 Days of Coding

NOTE: after creating this video I went back and realized you can just do .replace(/[^\w]|_/g, ''). You could do that instead of the 2 chained replace statements in the solutions

******************************************************
ℹ Help Links ℹ

******************************************************

******************************************************
******************************************************

DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you!
Рекомендации по теме
Комментарии
Автор

one suggestion is to zoom in so viewers can see better. thanks for doing this

ASoftwareEngineer
Автор

Hi, great explanation. But I have never used regular expressions, so have a question. Why do we write the replacement twice? Why can't we write something like
.replace(/[^\w]/). Thx a lot🚀

pavlikovinc
visit shbcf.ru