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

To select nonadjacent items, select the first item as usual, press and hold down the ____ key, and then while holding down the key, select the additional items.
help please need asap
What is the answer to this? x + 8 >= 14
products formed when a candle burns​
Please I need this today
SOY GAY SOLO ES BROMA O SOY NO LO SÉ DE TODOS MODOS PUNTOS GRATIS BEBES
Can anyone help me Bbbbnbb brush
You have been selected to be one of the judges for the Middle School Math Fair. In one competition, the sixth graders were asked to create similar figures of re
Determine the distance between the two points using the Pythagorean theorem.
Please someone report this guy.He is being very disrespectful and rude to others that tried to answer his question.I have reported many times but no one has don