Learn localStorage by Building a Todo App - Step 51

Tell us what’s happening:

On step 51, there’s a typo error on the “Check the console to see the difference between getTaskArr and getTaskObj.” part. Instead of getTaskObj, it should be getTaskArrObj.

The item you retrieve is a string, as you saved it with JSON.stringify(). To view it in its original form before saving, you need to use JSON.parse().

Use getItem() to retrieve the myTaskArr array again. This time, wrap it inside JSON.parse(), assign it to the variable getTaskArrObj and log the getTaskArrObj to the console.

Check the console to see the difference between getTaskArr and getTaskObj.

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 51

You are right. Would you be interested in making issue for this on the github? Sign in to GitHub · GitHub

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