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

At STP, which sample contains the same number of molecules as 11.2 liters of CO2(g) at STP? (1) 5.6 L of NO2(g) (3) 11.2 L of N2(g) (2) 7.5 L of H2(g) (4) 22.4
How does the Constitution limit presidential power?
What can be concluded if an ion of an element is smaller than an atom of the same element? (1) The ion is negatively charged because it has fewer electrons than
it took jayla 40 seconds to rip half a DVD. what is jaylas ripping rate in DVDs per minute?
Anthropology help 4. Which of these statements best describes comparative linguistics? (Points : 3) It is the study of the language of a specific ethnic group
Which two particles make up most of the mass of a hydrogen-2 atom? (1) electron and neutron (2) electron and proton (3) proton and neutron (4) proton and positr
What was a major result in the Civil War?
which statement best describes Aztec civilization at the time of the encounter
Which ionic compound is water soluble
What pH must organisms maintain?