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

In this section of speech Lincoln talks about the work that the union still needs to accomplish. What did the fighting at Gettysburg accomplish in Lincoln's vie
Can someone please help with this question?
Outline the similarities and differences between Bandura et al.’s (1963) and Bushman and Huesmann’s (2006) approaches to the study of media violence’.
HELP 30 POINTS Please provide a brief response to the following question. Why did the Egyptians need to measure land?
PLEASE HELP! Agnes and Sons had ordered 11,500 machine parts. The cost of the parts was $48,000.00. Find the cost of each part to the nearest whole cent?
Which country boarders the Horn of Africa in the West?​
If you want to know the probability that it is a defective tire (event D), which formula would you use?
please help asap no trolls!! *this ones a bit harder but i wanna see who gets it right first :)*
Fine the equation of the line that is perpendicular to the given line and passes through the given point. Enter the right side of the equation as a single fract
How did Vivian Baxter react to her daughter’s calling her lady?