O'Reilly logo

Modern JavaScript: Develop and Design by Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Complex Variable Types

Chapter 4, Simple Variable Types, introduced the basics of working with variables in JavaScript, including the simplest of types: strings, numbers, and Booleans. The true potential of any language comes through its complex data types. In JavaScript, this primarily means arrays and objects, although I’ve included the Date type in this chapter, too. While arrays are common to all languages (in one format or another), JavaScript’s implementation of objects is significantly different from any other language, and key to understanding JavaScript as a whole.

Generating Dates and Times

The first complex type to be discussed in this chapter is the Date object. Although Date is used quite differently than the array and (generic) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required