Tagged with constructorfunctions

Constructor functions

The object literal syntax is great for setting up one off objects but sometimes you’ll want to mass produce objects that all have the same properties and methods. It would be a pain to have to set up each object individually so instead you can use a constructor function to do it for you. There’s [...]
Published in Javascript, Web development on Sunday, September 14th, 2008

How javascript objects work

This is a series of articles about how to use the javascript language features to write object oriented type code. It's designed for people who are already sold on the idea of bundling functionality up into objects and want to know the javascript way of doing things.
Published in Javascript on Sunday, August 17th, 2008