Objects or Constructor Functions?

This lesson discusses why constructor functions are used in JavaScript.

Functions as Objects

Functions are also objects in JavaScript. This is because, just like objects, they have their own properties and methods. Functions can also be used to construct objects; these type of functions are known as constructor functions.

Get hands-on with 1200+ tech skills courses.