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 a tonal collage? We learnt it in school BUT  I can't remember.
Why does a pendulum eventually stop swinging?
what describes the solvent in any solution
would you rather be a senator or a representative member? why or why not?
Jonathan has been on a diet since January 2013. So far, he has been losing weight at a steady rate. Based on monthly weigh-ins, his weight, w, can be modeled by
what is perpendicular to y= 3x -9 and passes through the point (3,1)
In little Marsden the population is 17 222. The men and women together total 9142 and the women and children together total 13 201. There are ...... Women There
In a sale, normal prices are reduced by 12% The sale price of a digital camera is £132.88 Work out the normal price of the digital camera (3marks)
If you multiply a number by five and then subtract negative ten, the difference is negative thirty. What is the number?
Explain why the current is reduced as electrons move through a conductor.