This article explores the various ways you can create objects with the JavaScript language, and through this exploration finds that there is much to learn about the language!
* Introduction
* Plain old objects
* Constructor functions
* The inner workings of 'new'
* Exploring the prototype chain and instanceof
* When is a prototype not a prototype?
* The constructor property
* The confusing world of 'this'
* Private parts
* Using closures for private state
* Summary
* Conclusions
Your new post is loading...