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

Is four L greater than or less than 3000 mL?
Why did workers band together to form labor unions? (Points : 2) to improve working conditions to revolt to modernize factories to make employees work more effi
what was Aphrodite's birth and infancy as a baby
Which of the following electromagnetic waves are listed in the correct order from longest wavelength to shortest wavelength? A. infrared, ultraviolet, visibl
The volume of a cylinder, found using 3.14 to approximate pi, is 50,240 cm3. The radius of the cylinder is 40 cm. What is the height of the cylinder? Express yo
what two numbers multiply and get 100 and add and get -29??
which countries has the most landmass in Asia? Ukraine Belarus Russia Poland
What types of fossils do most paleontologists study?
what is the surface area of a rectangular prim 3mm,9mm 13mm
a die with 8 sides is rolled.what is the probability of rolling a number less than 7