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 ...

Get JavaScript Object Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.