Learn localStorage by Building a Todo App - Step 68

Tell us what’s happening:

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

Your code so far

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

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

You made a mistake in the way you changed the code for the id property. What did the step say you need to do for that one that is different than what you did for the other properties?

1 Like

Mod edit: code removed

It simply tells you to wrap the function to the value of the input.(titleInput) Happy Saturday!!
:+1: