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 do the pool players who speak in "We Real Cool" take pride in? A. their defiance of rules B. their plans for the future C. their skill at billiards D. thei
A couch is 94 inches long. what is the length in feet and inches
The value root of 40 of lies between which two consecutive integers
what solid does a recorder look like
how did the israelites beliefs differ from the beliefs of most other ancient people
In medieval japan and medieval Europe , the feudal system was dominated by.
It is easy to move genes from one species to another. Is it right to do this? explain your position
The value root of 40 of lies between which two consecutive integers
help please !! Who might be the main characters in a world parents type of creation story? a turtle and a raven a powerful god and a human the sky and the earth
Hi I need some facts on cleo mussi