DEV Community

Do Cuong
Do Cuong

Posted on

29/10

29/10
TOP - Foundation: 93%
Object Basics

Working with object basics exercises in the foundation repo.

Done 2/5.

The exercise 2 - checking for palindromes was really hard.
Have to go over the array method and string method a lot.

In the end I completed it, by using replaceAll to trim out the special characters and array.every() to check if each word is satisfy the condition though.
TOP solution was using filter to filter all the alphanumerical fo the string then using reverse() which I think is better than my solution

Still confuse a lot while learning but I am starting to google with confidence now, lol.

Top comments (0)