Learn localStorage by Building a Todo App - Step 68

Tell us what’s happening:

How do i overcome this? Im trying to follow instructions just how it directed me to.

Your code so far

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

/* file: styles.css */

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

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


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0

Challenge Information:

Learn localStorage by Building a Todo App - Step 68

You need to apply removeSpecialChars inside the object (e.g. on title: titleInput.value and others).

1 Like

whats the difference to what i am doing?

like this?
title:removeSpecialChars(titleInput.value),
date: removeSpecialChars(dateInput.value),
description: removeSpecialChars(descriptionInput.value)

thank you i finally got it

1 Like

I’m having trouble with the same step, what do you mean by inside the object? Should I put brackets around removeSpecialChars, putting it as .removeSpecialChars or else?

Hi there!

You need to create your own topic to the challenge step.

the problem was we misunderstood. function SHOULD BE INSIDE THE OBJECT’S keys.

2 Likes