Build a Todo App using Local Storage - Step 66

Tell us what’s happening:

I have I tried all possible means and my code is showing “You should call removeSpecialChars on titleInput.value when assigning the id.” someone should help

Your code so far

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

/* file: styles.css */

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

  const taskObj = {
  id: removeSpecialChars(
    `${titleInput.value.toLowerCase().split(" ").join("-")}-${Date.now()}`
  ),
  title: titleInput.value,
  date: dateInput.value,
  description: descriptionInput.value,
};


// 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/143.0.0.0 Safari/537.36

Challenge Information:

Build a Todo App using Local Storage - Step 66

you should remove special characters only from titleInput.value, and do not pass to the function all the string you build

Please expatiate if you don’t mind. I remove everything and I tried but it’s still there, If there’s a sample code please show me.

can you show your updated code?

in the code you posted you are passing `${titleInput.value.toLowerCase().split(" ").join("-")}-${Date.now()}`to removeSpecialChars, not titleInput.value, only tileInput.value should be passed to removeSpecialChars

const taskObj = {

id: removeSpecialChars(titleInput.value),

title: titleInput.value,

date: dateInput.value,

description: descriptionInput.value,

};

this is it

please do not delete the template literal, that still must be there, otherwise it’s a lot of work for nothing