Tell us what’s happening:
Even though i have added a space within the brackets to include spaces within allowed characters, it keeps saying that i shouldn’t remove spaces. I am at a lose for what to do, as this is how we accomplished this in the palindrome checker, and it worked there, but wont now.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const removeSpecialChars = (str) => {
str.replace(/[^a-zA-Z0-9 ]/g, "");
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0
Challenge Information:
Learn localStorage by Building a Todo App - Step 67