Learn localStorage by Building a Todo App - Step 68

Tell us what’s happening:

i have so many try for this step but any try not be success

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

Challenge Information:

Learn localStorage by Building a Todo App - Step 68

don’t you think this toLowerCase on its own is weird? it is usually used on a string

Doing this code didn’t make any difference

what code did you do? I was pointing out an issue with your code, not giving a solution

Okay, I misunderstood. You provided the solution. Sorry!

what code have you tried? do you have more questions?

i have try this code id: ${removeSpecialChars((titleInput.value).toLowerCase().split(" ").join("-"))}-${Date.now()}

that’s better

but consider what the tests tell you

what errors from the tests are you seeing?

I am seeing these errors when I am testing.
Sorry, your code does not pass. Don’t give up.

You should call removeSpecialChars on titleInput.value when assigning the id.

it looks like you have more than that as argument

a lot more than that

If you have a solution to this problem, please help me.

do you understand that the test is saying that you should only pass titleInput.value to removeSpecialChars but you are passing (titleInput.value).toLowerCase().split(" “).join("-") instead?

Yes, I understand. I have tried a lot, but I still don’t get it.

what code have you tried to change the argument of removeSpecialChars?

i have try this code id: `${removeSpecialChars((titleInput.value))}

try removing also the extra (), but the rest of the code should still be present, only not as argument of removeSpecialChars

Try this, you needed to add lower, split, jpin after you used removeSpecialChars() method.

Mod edit: code removed.

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. How to Help Someone with Their Code Using the Socratic Method

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.