JavaScript Inheritance and Object Programming

Coding Tutorial, Chapter 5e

Register Boxes

© 21 July, 2013, Martin Rinehart


Results

Registry additions reported with alert()s.

Code

See the book for the explanation. Create a registry with this line.



And register new Boxes with this line. Add an o2s() of the registry in an alert() to test.



Feedback: Martin Rinehart at gmail dot com.

# # #