Objects or Constructor Functions?

This lesson discusses why constructor functions are used in JavaScript.

Functions as Objects

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

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy