Learn localStorage by Building a Todo App - Step 66

Tell us what’s happening:

can anyone help me? i get stuck and don’t know where is the problem. thanks in advance

Your code so far

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

/* file: styles.css */

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

 const taskObj = {
  id: removeSpecialChars(titleInput.value),      
  title: removeSpecialChars(titleInput.value),   
  date: dateInput.value,
  description: removeSpecialChars(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/137.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 66

For the id property, only call it on the titleInput.value part of the property value

Please reset this step and try again since you’ve lost the given id code. Keep in mind the above instruction as you do.

so it means become like this? but it supposed to be id need to call the removeSpecialChars too, right?

id: titleInput.value

it is not supposed to be like that, you have removed everything else that was there and did not add removeSpecialChars

Hi sorry, wdym about

did not add removeSpecialChars

I’d still don’t get it, I mean the error kept tell me to call the array function removeSpecialChars. Anyway, I re-write the code and become like this but still get the error, perhaps is there something i missed out again? thank u

id: `${removeSpecialChars(titleInput.value.toLowerCase.split(" ")).join("-")}-${Date.now()}`,

you need to pass only titleInput.value to the function, otherwise all that special characters you are adding in the expression would be removed