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.
This is where methods come in. A method in object-oriented programming is a procedure associated with a class. A method defines the behavior of the objects that are created from the class. Another way to say this is that a method is an action that an object is able to perform. The association between method and class is called binding.