Question: In the following constructor function, refers to what? function Aircraft(modelVal){ this.model = modelval; this.printModel = function(){ console.log(this.model); } } refers to the constructor function refers

In the following constructor function, refers to what? function Aircraft(modelVal)\{ this.model = modelval; this.printModel = function()\{ console.log(this.model); \} \} refers to the constructor function refers to the parameter refers to an instance of when the constructor is used with refers to nothing, it's a temporary variable inside the constructor function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
