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 is the process of locating a IP address for a personal device or a domain?
Look at the subtraction expression: 7-8 Which of these addition expressions is equivalent to the subtraction expression above? Choose all that apply. -[-7+8) 0-
Read the sentence and choose the best option. Julio necesita bastante ayuda para prepararse para la celebración. Select the adverb in the sentence. (1 point) a
Help is u speak Spanish plz
how do most people get their news?
You have 32 Tbsp of peppercorns. You need 0.25 teaspoons to make one serving of Cajun seasoning. How many servings can you make?
what is numerology?ㅤㅤㅤㅤ​
A scientist is examining an unknown solid. which procedure would most likely help determine a chemical property of the substance ​
plz 50 points and brainliest but give me the true answer with steps At 200 K, the molecules or atoms of an unknown gas, X, have an average velocity equal to tha
40% of what number is 82