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

Which of the structures are considered accessory organs in the digestive system?
Help me please asap!!! NOTE : PLEASE LOOK AT THE 3 PICTURES & I NEED A EXPLANATION
What is it called when people cut down trees for timber and use the new land to grow crops?
Find the value of x in the parallelogram below
In F,if BF = 6 cm, then FD= __cm.
PLSSS HELP IF YOU TURLY KNOW THISS
In 5 Sentences or more talk about how a student can pass a class if no work is done and if the teacher is only going so far back to open assignments.
What are the basic units of matter? electrons atoms protons neutrons
Es algo que ponemos en una ensalada O en un sandwich.
A. Transform F using the rule (x, y) → (-x, y) (1 pt.) B. Describe the transformation precisely. (1 pt.) C. Does the transformation result in a a congruent figu