+ 3
Fill in the blanks to make this code run and print 60.
let car = { speed: 40, accelerate() { ____.speed += 10; } };
12 Answers
+ 8
this
car
speed
+ 3
let car = {
speed: 40,
accelerate() {
this
.speed += 10;
}
};
car
.accelerate();
car.accelerate();
console.log(car.
speed
);
+ 2
let car = {
speed: 40,
accelerate() {
this
.speed += 10;
}
};
car
.accelerate();
car.accelerate();
console.log(car.
speed
);
+ 2
let car = {
speed: 40,
accelerate() {
this
.speed += 10;
}
};
car
.accelerate();
car.accelerate();
console.log(car.
speed
);
+ 1
let car = {
speed: 40,
accelerate() {
this.speed += 10;
}
car.accelerate();
console.log(car.speed);
Enjoy
+ 1
Fill in the blanks to make this code run and print 60.
let car = {
speed: 40,
accelerate() {
this
.speed += 10;
}
};
car
.accelerate();
car.accelerate();
console.log(car.
speed
);
+ 1
let car = {
speed: 40,
accelerate() {
this
.speed += 10;
}
};
car
.accelerate();
car.accelerate();
console.log(car.
speed
);
0
let car = {
speed: 40,
accelerate() {
this
.speed += 10;
}
};
car
.accelerate();
car.accelerate();
console.log(car.
speed
);
0
let car = {
speed: 40,
accelerate() {
this.speed += 10;
}
};
car.accelerate();
car.accelerate();
console.log(car.speed);
0
this.speed
car.
speed
0
Fill in the blanks to make this code run and print 60.
let car = {
speed: 40,
accelerate() {
this.speed += 10;
}
};
car.accelerate();
car.accelerate();
console.log(car.speed
);