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 sum of two consecutive even integers is -22, what are the two numbers?
What are the three types of economic systems?
What is the domain and range of y = x+1/x-1
Which one is not equal to the rest 12 yards 144 inches 36 feet
to produce a beneficial version of a trait in an animal, what type of process is used?
Segment AB contains points A and B. Segment CD contains points C and D. Are segment AB and segment CD parallel, perpendicular, or neither? Explain. A(3, -8) B(0
How do consumer expectations affect demand?
what action by president lincoln most angered the radical reoublicans in congress
what landforms make up most of the Balkan Peninsula
Making Inferences Why do you think governments want to influence the supply of alcohol and tobacco products by imposing excise taxes?