- 1
Fill in the blanks to make this code run and print 60.
let car = { speed: 40, accelerate() { .speed += 10; } }; .accelerate(); car.accelerate(); console.log(car. );
4 ответов
+ 3
this
car
speed
+ 1
I have an idea how about you post this question on quiz factory
0
this
car
speed
0
//code
let car = {
speed: 40,
accelerate() {
this.speed +=10;
}
};
car.accelerate();
console.log(car.speed);
//output
the following code give me output of 50, but the question is wrong, asking to make it output 60.