While doing the palindrome algorithm section, there is one part that I don’t understand which is:
What I don’t understand from this is what is boldened.
I want to make sure that I am understanding this correctly.
" /[\W_]g,’’ "is telling the .replace() method to find any non-character (specifically the underscore ( _ )) and delete it with the second parameter of the method (’’)
Do I understand that correctly?