JS

Objects in JavaScript - Constructor object functio...

29.

What is a constructor function in JavaScript?

A function that creates an object with specific properties and behavior.

A function that returns a new object when invoked with the 'new' keyword.

A function that is used to define the prototype of an object.

A function that is used to modify the existing properties of an object.