Learn localStorage by Building a Todo App - Step 19

Tell us what’s happening:

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

i check my code and i get Sorry your code doesnt pass , your taskObj should have a title key and value of the titleInput.value
i cant figure out what is the problem despite i put the code correctly and i can see the result in the console ( the data retreived correctly after submitting a new Task)

Your code so far

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

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

    id: `${titleInput.value.toLowerCase().split(" ").join("-")}-${Date.now()}`,
    title:`${titleInput.value}`,
    date:`${dateInput.value}`,
    description:`${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/129.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 19

Hi there and welcome to our community!

You do not need to use template literals for your title, date and description values. You only need them for the id because you are evaluating an expression and interpolating into a string.

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