Question 6 of 1006%
6
What will be logged when this code runs? (Consider each call's console output in order.)
function Car() {
this.make = 'Lamborghini';
console.log("Hello");
return { make: 'Maserati' };
}
Car();
new Car();
6/100
function Car() {
this.make = 'Lamborghini';
console.log("Hello");
return { make: 'Maserati' };
}
Car();
new Car();