© Russ Ferguson 2019
Russ FergusonBeginning JavaScripthttps://doi.org/10.1007/978-1-4842-4395-4_3

3. JavaScript Variables

Russ Ferguson1 
Ocean, NJ, USA

In this chapter, you will learn some basic JavaScript data types. When you want the computer to hold onto some information, that information is of a certain “type.” For example, an email address is a type called String. The computer recognizes that your email address is a series of letters, numbers, and symbols.

If you want to perform a calculation, the computer will consider the data that you are using to perform that calculation as a number. It can calculate numbers but not strings.

As you go through the chapter, you will explore some of these data types. In addition you will also see how variables ...

Get Beginning JavaScript: The Ultimate Guide to Modern JavaScript Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.