Learn localStorage by Building a Todo App - Step 41

Tell us what’s happening:

I’m having issue understanding the script.
where exactly are saved tasks stored.
atfirst I thought it was saved in taskData but when I console.log it, nothing returns in console except these [ ] all the time.
then I thought maybe in taskContainer but then in updateTaskContainer() taskContainers innerHTML is supposedto be empty “”.
so could anybody tell me where are saved tasks stored.
and is there anything stored in currentTask because I can’t understand what is it for or why do I have dataArrIndex?

Your code so far

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

/* file: styles.css */

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

          <button type="button" class="btn">Edit</button>
          <button type="button" class="btn">Delete</button> 

// 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/127.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 41

Hi there!

Where is the code you have trying to test.?
Edit: that challenge is about learning localStorag. You can find it on developer console.

click on the freecodecamp .org bellow Challenge Information:

how to find developer console.

You will learn about developer console in next steps.
open the Chrome Menu in the upper-right-hand corner of the browser window and select More Tools > Developer Tools. You can also use Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux).

1 Like