4Working with data

The image shows a bridge over a small stream.

What you will learn

In this chapter, you’ll build more JavaScript programs. You’ll discover that a computer is fundamentally a data processor and that a program tells the computer what to do with the data. You’ll see how programs store data using variables, and you’ll learn how JavaScript manages diverse kinds of data that can be stored by a program. You’ll also learn how JavaScript manages the visibility of variables within a program. By the end of this chapter, you’ll be able to create useful programs.

Computers as data processors

Data and information

Variables in programs

Working with variables

Random numbers

Working with ...

Get Begin to Code with 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.