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

I NEED HELP!! This is a another question, I'll give you 50 points and a brainlist if you figure this out, all you have to do is to Solve the following multi-ste
How many chinese dialects are there? btw is for my chinese homework​
plz help asap!!!!!!!!!!!!!!!
Advancement in which field led to the development of communities, towns, and large cities? agriculture economics O mining O politics
A random sample of 41 cars in the drive-thru of a popular fast food restaurant revealed an average bill of $19.55 per car. The population standard deviation is
what were the reasons for the truce that ended the peloponnesian war ?
What is 7 raised to the zeroth power?
Enrique, ___ tienes en la maleta?
Closely related species contain all of the following except A. similar sized populations B. more similar DNA sequences C. more similar structural features
PLEASE HELP Read this excerpt from Walt Whitman’s poem “In Cabin'd Ships at Sea” from Leaves of Grass. The tones of unseen mystery, the vague and vast suggesti