5. Storing Data in JavaScript

Storing data is core functionality of JavaScript. It doesn’t make things swoosh around the page, slide, fade in/out, or draw the user’s eye. But properly storing your data will make it well organized and easy to access later in your application, which is one of those magic pieces about creating a great user experience that the user is completely ignorant about (in a good way—they don’t notice it). Quick and easy access to data, brilliant!

In this chapter, you learn the different methods of storing data within a JavaScript model. Some methods are internal to your own personal scripting file and some are consumed externally. Externally generated data can be produced by a database local to your application or an external ...

Get Learning JavaScript: A Hands-On Guide to the Fundamentals of Modern JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.