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

hi i need to know how much watt hours divided by month total
Substituting y=-2 in the equation Solve the problem -2x+_____=-12
16. A 6 kg block is falling toward a spring located 1.8 m below. If it has a speed of 4 m/s at first,what will be the maximum compression of the spring? Assume
I don’t know how to do this
What should be done about an employee who is not doing a fair share of the work?
In which step of a four-stroke engine cycle does the car release CO2, H2O, and CO?
Organic matter is essential in soil for it to be able to produce vegetation. What roles do organic matter play in making soil viable? Select all that apply. 1
Helpppppp solve it find the area please
Me and my classmates were trying to solve this and we couldn’t come to an agreement. What is the answer to this question?
Which sentence from “Homesick” best shows that the narrator is a character in the story? "Well, let's play shuffleboard," she said. The universe was one-hundred