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

The work of a student to solve a set of equations is shown: Equation A: y = 15 − 2z Equation B: 2y = 3 − 4z Step 1: −2(y) = −2(15 − 2z) [Equation A is mul
How many grams of Al2O3 are required to react completely with 1500.0 kJ of heat? 2Al2O3(s) + 3352 kJ → 4Al(s) + 3O2(g)
Yesenia wants to bake cookies in her electric oven. The oven will transform electrical energy into ________ energy
If you can figure these out that would be great. Cause I Suck at them!A-ForwardB-LightC-Turn LeftD-Turn RightE-JumpP1P2
According to the law of conservation of mass, how does the mass of the products in a chemical reaction compare to the mass of the reactants? A There is no rela
What kind of variation must exist in a population that has a wide range of phenotypes?
What type of animal might become preserved in a tar pit?
What does Charlotte do when Wilbur asks about her health?   A. She talks about the fair.   B. She tells him not to worry.   C. She doesn't answer him
How many is ? 24 - 5w = 9 whit procedure
Which statement about people in industrialized Europe and the U.S. is NOT correct?