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

Apa tujuan dibentuknya pakta warsawa
after edward vowed not to touch her again what deal did bella try to make
What substances do not exist as molecules in nature?
is a voluntary response sample (sometimes, always, or never) valid?
Please help me Which number can be written as 200+10+7 207 210 217 271 help me thanks
A car initially at rest, accelerates at a constant rate of 4.0 m/s for 6s. How fast will the car be traveling at 6s
In the United States today, we have a __________ system. one-party two-party multiparty four-party There are distinct separations between each level of politica
If You Have To Pay Someone $279 In Denominations Of $20 Or Less, What Is The Least Number Of Bills You Could Use?
A cell membrane is very specific about what it allows across. How does this help the cell? A. The cell works better when it contains fewer protein B. It helps
Let f(x)= x^4 + ax^2 +b. The graph of f has a relative minimum at (0,1) and an inflection point when x=1. The values of a and b are...I AM EXTREMELY DESPERATE I