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

HELPP ME IM TOO SLOW FA DIS
*PLEASE ANSWER FAST! 10. The process shown in the diagram is known as - photosynthesis -replication -cellular respiration -protein synthesis
Include 3 causes of overpopulation in your own words, it would help if you can cite what you used! :)
why did the genocide in 1994 in rwanda end?
How can you find out the similarities and differences in a non-fiction text
What is the least common multiple of these two denominators? 3/6 , 2/12A: 18B:12C:6D:15​
Please help if you know the answer plz and thank you
How many solutions are there to this equation? 3(3x-1)=6x-3 A.no solutions B.one solution C.two solutions D.infinite solutions
How do prokaryotic organisms reproduce
Find f(-6) FINAL EXAM PLEASE HELPPPP