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 do you?...Multiply out and simplify 10(2x-1)-20x?
what's another word for over thinking?
What is the amplitude of y=1/2 sin2x
What is the amplitude of y=1/2 sin2x
What is the least common denominator for 5/6 and 3/8. 3/4 and 6/7
The function of the eardrum in the middle ear is to
you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot
in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
The function of the eardrum in the middle ear is to