What is a JavaScript Constructor?

By: Dusty Arlia
Published on Thursday, March 21, 2013, 09:03 PM
Last Updated on Monday, July 06, 2015 at 3:09 PM
Total Updates: 4

A JavaScript constructor is any function which is used to create an object. Constructors use the new operator to create these objects.

Since functions are objects, you can create them with the Function constructor. Every function in JavaScript is actually a Function object.