luislikesgames12
luislikesgames12 luislikesgames12
  • 01-12-2020
  • Computers and Technology
contestada

What number will be output by the console.log command on line 5?
A. 10
B. 25
C. 30
D. 35

What number will be output by the consolelog command on line 5 A 10 B 25 C 30 D 35 class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 06-12-2020

Answer:

The output is 35

Explanation:

Required

Determine the output on line 5

We start by analysing the program line by line.

On line 1: kit = 20

On line 2: roo = 10

On line 3: kit = kit + 5

Substitute 20 for kit.

So, we have

kit = 20 + 5

kit = 25

On line 4:

roo = kit + roo

Substitute values for kit and too

roo = 25 + 10

roo = 35

On line 5: Output roo

So, 35 is displayed as an output

Answer Link

Otras preguntas

Drug abuse is best defined as __________. A. the consumption of legal drugs B. the consumption of illegal drugs C. the nonmedical or improper use of a drug that
An empty frame used to reserve space for a picture to be inserted at a later time is know as what
The vertex of this parabola is at (-1,3) Which of the following could be its equation
Wich of the following is the largest number?​
1/2x+3/2(x+1)-1/4=5​
Use the net as an aid to compute the surface area of the triangular prism. A) 550m^2 B) 614m^2 C) 670m^2 D) 790m^2
Sabían que les gustaría el apartamento luego que lo _________ a. Vieran b.vean
y intercept,slope,and linear equation=​
Please help me with this!! Thank u
Which sentence from the passage uses a correct parallel structure? A) Either way, he had to choose quickly, as the stand was rapidly approaching. B) Coming dow