November 2017
Beginner to intermediate
398 pages
8h 42m
English
Now that we save the note content each time it changes, we will need to restore it when the app is reopened. We will use the localStorage.getItem() API for that. Add the following line at the end of your JavaScript file:
console.log('restored note:', localStorage.getItem('content'))
When you refresh your app, you should see the saved note content printed in the browser console.
Read now
Unlock full access