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 total weight of 6 pieces of butter and a bag of sugar is 3.8 lb. If the weight of the bag of sugar is 1.4 lb, what is the weight of each piece of butter?
What is the period of a sound wave having frequency of 340 hertz
Which of these writers influenced Jane Austen’s work? Samuel Johnson John Milton Charlotte Bronte John Keats
What are the issues called, which are often decided by the courts, such as abortion, capital punishment, or LGBT rights
If a disabled person is unable to board the bus in a wheelchair, what does the Americans with Disabilities Act require? A. that the bus company reimburse the ma
Dave buys a baseball for $15 plus an 8% tax. Mel buys a football for $20 plus an 8$ tax. How much did each person pay?
How did developments from the Renaissance affect Andreas Vesalius's work?
Who led troops in California against Mexico?
A body moving with a velocity of 20 m/s begins to accelerate at 3 m/s2. How far does the body move in 5 seconds? A. 137.5 m B. 196 m C. 260 m D. 162.5 m
Aubrey played on the playground 2 1/2 hours.How many minutes did she play?