Archive for the ‘factory functions’ Category

Quick Tip: What Are Factory Functions in JavaScript

Posted on: No Comments
You can't get far as a JavaScript programmer without learning about functions and objects, and when used together, they are the building blocks we need to get started with a powerful object paradigm called composition. Today we'll look at some idiomati...

JavaScript Object Creation: Patterns and Best Practices

This article was peer reviewed by Tim Severien. Thanks to all of SitePoint's peer reviewers for making SitePoint content the best it can be! [author_more] JavaScript has a multitude of styles for creating objects, and newcomers and veterans alike can f...