Build a Todo App using Local Storage - Step 67

Tell us what’s happening:

Hi,

I tried to figure it out, but it is still not passing. I have already looked at one of the posts for hints, but I am still unable to resolve the issue.

script.js:

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

Thank you for your help.

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36

Challenge Information:

Build a Todo App using Local Storage - Step 67

Github Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-todo-app/67168a7243b6396cb69c1bdf.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi

You have changed some of the seed code in your id property. I suggest you reset the step and don’t change any existing code there but add the function call as you have done.

Can you reformat your code as code? It will get more responses that way. Some people may copy your code to test it if it’s formatted properly.

Hi

At the start of step 67 the id property is showing as:


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

Leaving aside the function call you added, your id property is:

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

Can you see the difference? If the seed code is different it won’t pass. Reset the step and only do what is asked.

When you enter a code block into a forum post, please precede it with three backticks to make it easier to read and test.

You can also use the “preformatted text” tool in the editor (</>) to add the backticks.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Hey, I got it now and here it is.

const taskObj = {

[mod edit - solution removed]
};

Great that you’ve solved it now. I have removed the solution from your post as it’s against the forum rules.