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

What were two reasons for immigrants supporting political machines?
A car requires 4 quarts of oil, but only liters are available. When the engine is filled to capacity with oil, how much, in liters, will be left? (1 qt = 0.946
Write a story from a speck of dusts point of view to walk through the process of star formation. explain all the things you would see and feel going through thi
Last year, the number of students enrolled in the school was 672. If this number increases by 12% the next year, how many students will there be? What an amount
Suppose you have a black male rabbit and a black female rabbit. Each has a dominant gene (F) for black fur and a recessive gene (f) for white fur. What do Mende
restaurant bill for 4 people is $120. The group leaves a tip of $18. What percent tip is that?
Are 6 8 and 10 the sides of a right triangle?
There are 5 Christmas trees in the town square. Four of the trees have 155 ornaments on them. The 5th tree is the largest and has 285 ornaments. How many orname
Can the base of a exponential function be 1?
Which was not a cause of the War if 1812?