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

help on questions 11 and 15 Add and simplify if possible
Solve for x. 6x - 2 = 5x - 7 - 3x
What are the two major political parties in the United States?
The excitation of an electron on the surface of a photocell required 5.0 x 10 –27 J of energy. Calculate the wavelength of light that was needed to excite the e
Which two earth layers are separated by the moho boundary?
What are two rights of everyone living in the United States?
Name one problem that led to the Civil War.
What are the two major political parties in the United States?
Which condensed structural formula represents an unsaturated compound? (1) CH3CHCHCH3 (3) CH3CH3 (2) CH3CH2CH3 (4) CH4
Given the balanced equation representing a reaction: 4Al(s) + 3O2(g) ==> Al2O3(s) As the aluminum loses 12 moles of electrons, the oxygen (1) gains 4 moles o