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 mean by Faculty of Science​
Is 4-2n = 5-n+1 a one solution or a no solution or is it a real number
Which of the follow descriptions apply to the fate of Fort Loudoun? (Select all that apply.)
how does the federal system of government help in decreasing the regional disparity​
What’s the equation.
The thieves have been arrested by the police. Is it passive or active if passive change from passive to active sentence thx Brainlist
The fastest growing mode of entertainment for Americans after ww2
Write an inequality that represents the graph
Read the sentence. In the upstairs computer lab, Monica was focused on the screen while working on her photography project.
For which other positive integers a, less than 11, will the number (a^n) + (a^n+1) + (a^n+2) + (a^n+3) + (a^n+4) always be divisible? Pls, Answer with the enti