O'Reilly logo

JavaScript Object Programming by Martin Rinehart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2

image

Object Programming

I wrote a system, called JSWindows, for this book’s predecessor. We’ll describe it here and refer to it regularly for examples.

JSWindows Sample System

JSWindows is a basic windowing system (open/close windows, minimize/maximize, style, drag, and so on) written in JavaScript. It uses a heavy dose of OOP-style inheritance and lots of prototypal inheritance, too. You can try it yourself at my web site. You get the full source when you download this book’s software:

Apress.com/9781484217863

Now, on to object programming.

OP Removes Restrictions

Once you can create objects, you are ready to consider object programming ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required