Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

what number will be output by the console.log command on line 5? 1 var …

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

Explanation:

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

Answer:

16