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

Which of these cultural influences dominated under the Great Mughals? a. Hindu b. Persian c. Mongol d. Turkish
how does smoking relate to risk of heart attack and atherosclerosis?
Which list of events of the Athenian Empire is in the correct chronological order? A. i. A plague broke out in Athens. ii. The Peloponnesian War began. ii
easter egg decorating ideas
mitosis and meiosis similarities
spring break on the coast 2016
what documents do i need to get a passport
Tough Math Help ! Use PRT To Solve ( Time in Year) P=300$ R=0.9 T=4 months * 4 months change to a reduced fraction. there are 12 months in one year. Find I
Popular topics, such as handwriting analysis and astrology, are not considered psychology since they cannot be proven or disproven. They fall into the catagory
whate type of wave is made up of a sine wave plus all of its odd harmonics?