Salesforce JavaScript-Developer-I Question Answer
Original constructor function:
01 function Vehicle(name, price) {
02 this.name = name;
03 this.price = price;
04 }
05 Vehicle.prototype.priceInfo = function () {
06 return `Cost of the $(this.name) is $(this.price)$`;
07 }
08 var ford = new Vehicle( ' Ford Fiesta ' , ' 20,000 ' );
Which class definition is correct?

