I didn’t look at FCC’s javascript or CSS, so if there’s any similarity, it’s purely coincidental. It took me a few hours to think about the approach I would take for the solution, and days to discover why my code wasn’t outputting the result. I read a few external blogs and discovered that I wasn’t scoping my declarations well from a random person’s codepen of a palindrome checker…
Ah yes, I also saw that but don’t know what direction to take to fix it, particularly because my regex variable allows overlooking punctuation and underscore in the text… I don’t know if you understand what I’m trying to say
I knew about your choice of regex pattern before I chose the one I used. I have already finished working on the project before sharing it. I wrote another approach that is similar to yours but I used the spread operator … You can use the spread operator to improve your code for the reversedInput variable. The spread operator lets you copy the content of a variable into another variable. Check the commented out line of code where I used the spread operator to learn how it work
Did you forget to remove the console.log in the filter function code block?