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