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