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 are the foci of the following graph?
Which of the following is a valid mole ratio from the balanced equation 2Fe2O3 + 3C → 4Fe + 3CO2? two moles of F e two O three over four moles of F e four moles
What is the simplified expression for 5ab + 9ab - ab?
My actual weight is 112 pounds. The bathroom scale says that I weigh 111.1 pounds. The scale at the doctor's office gives a reading of 114.8 pounds. What is the
Please please need help on this one
11. What is the point of greatest emotional intensity in the story “An Episode of War” by Stephen Crane? The lieutenant is struck by a bullet. The lieutenant di
Contexto histórico y social de buda blues
Large Number CalculationsThe US consumes an average of 5.56 million metric tons of bananas per year. There are 314 million people in theUS and there are 1000 kg
Simplify each expression -7x+4(1+x)
Round 6.007 to the nearest hundredth