Chapter 8. All About Objects

This chapter covers

  • Declaring JavaScript objects
  • Defining reusable object types
  • Writing object-oriented JavaScript using Prototype

In part 2, we looked at how we can use Prototype and Scriptaculous to achieve a number of quick wins for our application development. Using the libraries in this way requires relatively little understanding of the internal functioning of the libraries themselves. Indeed, it requires little understanding of the language features that the libraries make use of. That’s one of the strengths of these libraries—for the casual user, the learning curve is not at all steep, and the payback is considerable. You may not need to take your use of the libraries beyond this level, in which case you’ve ...

Get Prototype and Scriptaculous in Action 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.