renjay257
renjay257 renjay257
  • 01-03-2021
  • Computers and Technology
contestada

What will the following program display in the console?

var sum = 0
for(var i = 0; i < 5; i++){
sum = sum + i
}
console.log(sum);

A. 15
B. 10
C. 5
D. 0

Respuesta :

1207153 1207153
  • 05-03-2021

Answer:

b- 10

Explanation:

Answer Link

Otras preguntas

Solve the inequalties, if possible, and graph. 2t + 10 > 2(4t + 4).
Are witchcraft True? answer briefly!
local governments use taxes to oversee the cleaning of streets and public sidewalks. true or false
Why did president franklin d. roosevelt establish social security?
75 cents/hr 24 hours a day
Given the two points (0,4) and (2, 6), what would the numerator of the equation for slope be?
Which quadrilateral always has two pairs of parallel sides and four right angles? a. kite b. parallelogram c. trapezoid d. rectangle
if weight is the force of gravity on an object, then your weight can change if the force of gravity is different on a different planet?
chlamydia, if left untreated:
what are the measures taken by counties to takle tropical storms