Learn localStorage by Building a Todo App - Step 68

Tell us what’s happening:

I dons have this… Puede que se un problema de traduccion … no lo sé alguien podria ayudarme con un ejemplo en codigo
const taskObj = {
id: removeSpecialChars(titleInput.value),
title: removeSpecialChars(titleInput.value),
date: removeSpecialChars(dateInput.value),
description: removeSpecialChars(descriptionInput.value),
};

Your code so far

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

/* file: styles.css */

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

  const taskObj = {
    id: removeSpecialChars(titleInput.value),
    title: removeSpecialChars(titleInput.value),
    date: removeSpecialChars(dateInput.value),
    description: removeSpecialChars(descriptionInput.value),
  };

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 68
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-localstorage-by-building-a-todo-app/step-68

what about the rest of the id? you removed a lot from there

This is original code

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

yeah, this is what you have now

where is the rest?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.