Learn localStorage by Building a Todo App - Step 67

Tell us what’s happening:

i don’t know what’s the problem. im confused.
can someone walkthrough me for what’s the problem with this solution?

Your code so far

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

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

const removeSpecialChars = (e) => {
  return e.trim().replace(/[^A-Za-z0-9\-\s]/g, '')

// 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

Hi there!

You have missing a closing curly brace for the function’s body. Also don’t trim the returning statement

const removeSpecialChars = (e) => {
return e.replace(/[^A-Za-z0-9-\s]/g , ‘’) }

still not works…

Remove th - after 9 within the regular expression.

Thank you for the reply.
it still doesn’t work and i’ll just move on.
this is my final code looks like

const removeSpecialChars = (e) => {
return e.replace(/[^A-Za-z0-9\s]/g,“”)
}

The above code is passing for me. But remember don’t copy and paste that to the challenge editor.
Because it’s empty string “” have altered here by posting your code here without preformatted it. Make sure the string "" or ''