Code skill Using the localStorage API

This code shows you how to use the localStorage API to store the information in your app in your web browser. Using localStorage allows you to save information in your web browser, so even if you app is closed or the page refreshed, you will still be able to access the up to date information. In this piece of code we have created two buttons and used localStorage to save and load our data.

See the Pen M3 CS Using the localStorage API by Walker Books UK (@walkerbooks) on CodePen.