When we talk about instruments, sometimes the guitar gets all the credit. Of course guitars are great, but an electric guitar on its ownâeven a hollow-bodyâis only so loud. For giving one of the world's favorite instruments its voice, guitar amplifiers deserve a little love too.
This book treats JavaScript as a serious object-oriented language, showing you how to build robust, maintainable, and powerful libraries and applications. Along the way, we cover many of the recent innovations such as AJAX, JSON, and interesting design and coding patterns.
A method in object-oriented programming is a procedure associated with a message and an object. An object is mostly made up of data and behavior, which form the interface that an object presents to the outside world. Data is represented as properties of the object and behavior as methods. For example, a Window object would have methods such as open and close, while its state would be a property. In class-based programming, methods are defined in a class, and objects are instances of a given clas