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

PLEASE HELP 20 POINTS!The sum of the x- and y-intercepts of the graph of 5x+3y = k is 32 5. Find the length of the line segment joining the x- and y-intercepts.
if a baking tray is 700mm by 600mm, how many of 25cm in diameter can fit into the baking tray?
a spinner is divided into 8 equal sections. 5 sections are red and 3 are green. if the spinner is spun 3 times, what is the probability that it lands on red exa
factoring, x squared +x-6?
If a - 3= 7, then 2a - 14 =
what is chemical energy?
the measure of distance from one point to another is?
what is the comparative and superlative of many, lazy, smooth, and rough
what are the functions of the sweat and oil glands
when did grass evolve?