QUESTION IMAGE
Question
what number will be output by the console.log command on line 5?
1 var oop = 10;
2 oop = oop + 1;
3 oop = oop + 2;
4 oop = oop + 3;
5 console.log(oop);
11
10
12
13
16
Step1: Initial value assignment
oop = 10
Step2: First addition
oop = 10 + 1 = 11
Step3: Second addition
oop = 11 + 2 = 13
Step4: Third addition
oop = 13 + 3 = 16
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
16