Learn localStorage by Building a Todo App - Step 67

Tell us what’s happening:

Doesn’t work for me , please help

Your code so far

const removeSpecialChars = removeSpecialChars.replace(/[^A-Za-z0-9]/g,“”);

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

/* file: styles.css */

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

const removeSpecialChars = removeSpecialChars.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/130.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 67

we need to create a function

You can use the same method to create a function that you used for other functions.

Hi @kuting001

Here is a recent post you may find helpful.

Happy coding