Objects or Constructor Functions?
This lesson discusses why constructor functions are used in JavaScript.
We'll cover the following...
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 ...
Access this course and 1400+ top-rated courses and projects.