Fill in the blanks to make this code run and print 60. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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. );

16th Feb 2019, 1:10 AM
alexsia tarquinii
alexsia tarquinii - avatar
4 Answers
+ 3
this car speed
16th Feb 2019, 1:12 AM
Rowsej
Rowsej - avatar
+ 1
I have an idea how about you post this question on quiz factory
16th Feb 2019, 6:48 AM
Gavrie Sashenka
Gavrie Sashenka - avatar
0
this car speed
7th Aug 2019, 2:31 PM
Faizu Abdullahi
Faizu Abdullahi - avatar
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.
30th Jun 2021, 5:59 PM
Ariful Islam
Ariful Islam - avatar