9. JavaScript: Objects

OBJECTIVES

In this chapter you’ll learn:

• Object-based programming terminology and concepts.

• The concepts of encapsulation and data hiding.

• The value of object orientation.

• To use the JavaScript objects Math, String, Date, Boolean and Number.

• To use the browser’s document and window objects.

• To use cookies.

• To represent objects simply using JSON.

My object all sublime I shall achieve in time.—W. S. Gilbert

Is it a world to hide virtues in?—William Shakespeare

Good as it is to inherit a library, it is better to collect one.—Augustine Birrell

Outline

Get JavaScript™ for Programmers: Deitel 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.