Chapter 3. Dealing with Data and Variables

CONTENTS>>

While the heart of a scripting or programming language is contained in its statements and structure, its utility is in the way the language handles data. As noted in Chapter 2, “An Orientation to JavaScript,” JavaScript is a weakly typed or untyped language, so the burden of keeping track of data types is left largely to the inner workings of the language.

However, JavaScript is more sophisticated than you might expect of a weakly typed language. In addition to strings, numbers, and Boolean values, JavaScript data can include objects, including arrays and functions. Each of these data types is important to understand before proceeding so ...

Get JavaScript Design 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.