Tell us what’s happening:
You should define a removeSpecialChars function. I keep receiving as the error message. I’m assuming its more with the special characters return.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const removeSpecialChars = (str) => {
return (str.replace(/[^a-zA-Z0-9 ]/g, ""));
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
Challenge Information:
Learn localStorage by Building a Todo App - Step 67
Hi. Your code worked for me.
Check that you haven’t done something in error in your remaining code.
If that doesn’t work you may have to do a “hard refresh” of a page in your browser if you have an out of date, cached version of that website.
While on the problematic site use the key combination below to trigger a hard refresh depending on your operating system:
- Windows:
CTRL + F5
- Mac/Apple:
Apple + Shift + R or Command + Shift + R
- Linux:
F5
To learn more about this read: Refresh your cache - When hitting F5 just isn't enough!
If a hard refresh doesn’t work, try opening the problematic page in your browser’s private browsing mode.
Thanks so much! it worked after resetting.
1 Like