Learn localStorage by Building a Todo App - Step 65

Tell us what’s happening:

I’ve got trouble getting this lesson right.
On regex101 my code seems to work, removing what is required, but i still get the error messages.
i tried an arrow-function and putting my regex, as well as my expression in 17 in a variable, which i could return, without another result.
I’d be happy for any help

Your code so far

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

/* file: styles.css */

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

function removeSpecialChars(input) {
  input.replace(/[^a-zA-Z0-9\s]/g,"");
  return;
}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0

Challenge Information:

Learn localStorage by Building a Todo App - Step 65

Right now, you’re not returning any value.

1 Like