Learn localStorage by Building a Todo App - Step 68

What’s happening:

My code isn’t working I tried everything nothing works and I can’t figure out what’s wrong! Please help!

My 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: 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/130.0.0.0 Safari/537.36 Edg/130.0.0.0

Challenge Information:

Learn localStorage by Building a Todo App - Step 68

Thoughts:

Help! What am I doing wrong?

hi i have the right answer:
code removed by moderator

1 Like

omg tysm I’ma try that!

It works?
If yes - console.log(Goodluck! “:)” )

2 Likes

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

you need do this
removeSpecialChars ( titleInput.value )
^ ^

1 Like

ok I’ma try that! thx!

and then you need to do
rest of code

1 Like

I figured it out! your answear was right but you needed to put quotes to work thx!

hi @maksson393

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.

I have a similar challenge Learn localStorage by building a Todo App step 68:

Please help me with my code, I am stack.

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

Hi there and welcome to the FCC forum. If you have any questions about specific curriculum challenge, create your own topic to the challenge step using Help button. That button appears below the challenge editor when you try to submit the wrong code more than three times.
@Amunyelet-Ojala

Thank you for the guidance

1 Like

I am also stuck, dont know what to do …need HELP on it!

hi @JAVIERARMAN

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

id:`${removeSpecialChars(titleInput.value) hay deveria cerrar el parentesis

i have the answer

code removed by moderator

hi @satyam10

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.

1 Like