Learn localStorage by Building a Todo App - Step 56

Tell us what’s happening:

Use the getItem() method to retrieve the myTaskArr array and assign it to the variable getTaskArr . Then, log the getTaskArr variable to the console to see the result.

I don’ t know what is wrong with this. thanks for answering

Your code so far

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

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

const getTaksArr = localStorage.getItem("data");
console.log(getTaksArr)


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

Challenge Information:

Learn localStorage by Building a Todo App - Step 56

Hi there and welcome to our community!
You have mistyped TaskArr:

Hi, you have a typo with your variable name, also entered in the console.

Thanks a lot. I could not see at all :slight_smile: :blush: