Build a Todo App using Local Storage - Step 60

Tell us what’s happening:

for step 60 of the Todo app using local storage I followed the instructions exactly but it is still telling me that i need to use localStorage.setItem(), have “data” as my first argument, and JSON.stringify(taskData) as my second argument

Your code so far

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

/* file: styles.css */

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

  localStorage.setItem("data", JSON.stringify(taskData));

// 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/137.0.0.0 Safari/537.36 Edg/137.0.0.0

Challenge Information:

Build a Todo App using Local Storage - Step 60

Hi @yashagarwal2009in and welcome to our community!

That line of code looks correct (and passes for me), but perhaps there’s an error (or missing code) elsewhere? Can you share your full code with us please?