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

How does the amount of humidity affect hurricane formation?
The hardest known natural material is _____. jade quartz diamond talc
Explain why external fertilization is a high-risk process
which was built first palace of montezuma or the presidents palace
Local governments are considered ______________ state governments. A. separate from B. more important than C. equal to D. subunits of
The strength of an electric field depends on the A. amount of charge that produced the field. B. distance from the charge. C. amount of charge on a test charg
What impact did railroads have on cities across the United States at the turn of the twentieth century?
Under feudalism, an aristocrat would give vassals land in an agreement in which the vassals would then give protection to the lord. a. True b. False
how is it possible mohave thousands of different proteins when there are only 20 different amino acids
A measure of the quantity of matter is a. density. c. force. b. weight. d. mass.