Question 3 of 585%
3
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();
3/58
function Car() {
this.make = 'Lamborghini';
console.log("Hello");
return { make: 'Maserati' };
}
Car();
new Car();