Learn localStorage by Building a Todo App - Step 68

Tell us what’s happening:

I have been trying to solve this but even ChatGpt cant help, can someone guide me to the problem?

Your code so far

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

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

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



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

removeSpecialCharacters is not a method, you instead need to pass those values as arguments to removeSpecialCharacters

1 Like
  • look at “removeSpecialChars” metho and see that its expecting a “parameter” to be passed to it as well.
  • here you’re trying to make use of “removeSpecialChars” as if it exists in"titleInput.value" which it does not, thats a “string”
  • hints: removeSpecialChars(string value), try to make use of that format and try again

happy coding :slight_smile:

1 Like

INSTANTLY SOLVED! THANK YOU

when you get time try it

MOD Solution removed

Welcome to the forum @vuyoyolo75

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.