August 2007
Intermediate to advanced
591 pages
14h 16m
English
Object-oriented concepts are everywhere in modern programming. If you have worked with .NET (C# or VB .NET), C++, or Java, then you should already be familiar with objects and object-oriented programming. If you are not, then this chapter will both introduce you to that topic conceptually and show you how to use it in JavaScript.
An object is a programming abstraction that groups data with the code that operates on it. All programs contain data of different types. Variables, as well as functions, were introduced separately in the previous chapter. I defined functions, and I defined variables, but I did not connect them in any way. An object encapsulates related data and functions into a single cohesive ...
Read now
Unlock full access