Chapter 11. JavaScript: Objects

 

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
 

A philosopher of imposing stature doesn’t think in a vacuum. Even his most abstract ideas are, to some extent, conditioned by what is or is not known in the time when he lives.

 
 --Alfred North Whitehead

OBJECTIVES

In this chapter you will 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 ...

Get Internet & World Wide Web: How to Program, Fourth Edition now with O’Reilly online learning.

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