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

what is 40 percent as a decimal?
How did Andrew Jackson's election illustrate the growth of democracy in the United States? A. Women's votes were a major reason that Jackson won. B. Jackson rep
Have have the oceans and seas surrounding North Africa and Southwest Asia benefited the region?
Identify the type of chemical reaction. H2CO3 H2O + CO2 decomposition exchange reversible synthesis
Why do object have high elevations have more potential energy than objects at low elevations
which fraction is closer to 1 than 0
Which of the following is true about Mongol rule in China? A.Trade with other countries declined. B.Chinese were allowed to serve in the military. C.Mongol and
Which ratio is the odd one out? 5:30 2:12 7:41 1:6 10:60
what is an open attack, usually armed?
what is the sum of 3/4 and 18/19 closest to 0 1 or