Are My Methods Correct?


#1

// Add a blowHorn method to the Car constructor's prototype that will log "Honk! Honk!" To the console when called.

this.blowHorn = function(){
console.log("Honk! Honk!");
}

// Create another method on the Car prototype called updateMileage that when called will increment the car's mileage by a given amount of miles.

this.car.updateMileage = function () {
carMileage++;
}

#2

Can you please tell me which exercise you're talking about? Would be useful.


#3

Guess this refers to this topic:


#4