Local Storage

LocalStorage lets you save bits of data that will be there the next time that same user visits the same page on that same browser.

LocalStorage acts sort of like an object hash -- but you should use its get and set methods, not [] or . notation.

LocalStorage Example


LocalStorage API

Storing More Than Strings

LocalStorage Lifespan

 Previous Lesson Next Lesson