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
andNumber
.To use the browser’s
document
andwindow
objects.To use cookies.
To represent ...
Get Internet & World Wide Web: How to Program, Fourth Edition 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.