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

Made 35/1/2 hours at $12.30 hour how much is that
One night, Alvin entered a convenience store intending to rob it. When he entered, he shoved a gun in the store clerk’s face and demanded money. Unbeknownst to
Kayla wants to purchase some new clothes for the school year and has a budget of $200. The sales tax rate that will apply when she makes her purchases is 7%. He
What changes do you think will occur in our healthcare system as a result of this pandemic?
Plz help with this question!
Second world group of nations
The table shows the side lengths and perimeters of four squares. Side Length (x) Perimeter (y) 4.5 18 8.5 34 10.25 41 13.75 55 Which equation represents the rel
Describe how Americans must have felt when these events occurred. Ask an older friend or relative about what they remember from living through Desert Storm or 9
Fruit First produces and sells baskets of dried fruit for $20 each. It receives a special order from Carol Costellano for 150 fruit baskets at a special price o
Marigold Corp. sells radios for $50 per unit. The fixed costs are $545000 and the variable costs are 60% of the selling price. As a result of new automated equi