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

help me out with this plzz 20 points and also brainlest my question in the attachment below thank you :)
which law states that the pressure and absolue tempeture of a fixed quantity of gas are directly proportional under constant volume conditions?​
Translate the expression from algebra to words: 6+r
!50 POINTS! GIVE REAL ANSWER OR I REPORT PLZ NO TROLLS! An executive drove from his home at an average speed of 35 mph to an airport where a helicopter was wait
Alternate Outputs from One Day's Labor Input: USA: 12 bushels of wheat or 3 yards of textiles. India: 3 bushels of wheat or 12 yards of textiles. From the data,
How many atoms are in 65.0g of zinc?​
In which of the following cultures do women face particularly strong societal pressures to retain a youthful appearance during middle adulthood? a. Latino b. Ea
What number comes next in this series 7,10,10,13,16,16,
Describe how the development changed society’s understanding how is the development applicable outside of the social science
Simplify the expression in simplest form (3x - 5)x4 +2