Learn localStorage by Building a Todo App - Step 67

Tell us what’s happening:

I am getting an error saying ‘You should define a removeSpecialChars function’ even though that’s exactly what I did. What is wrong?

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

const removeSpecialChars = (str) => str.replace(/[^a-zA-Z0-9\s]/gi, '');

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 67

do you see other errors in the console?

[ReferenceError: removeSpecialChars is not defined]

Hi there!

Your code passing on my end. Reset the challenge step, clear your browser cache or change the browser and try again.

I reset it and it finally worked, tysm!