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

help me pls w dis question i need help
The Mississippian culture constructed large mounds at ____________, near present-day St. Louis. Anasazi Kansas City Cahokia Jamestown
A desk drawer contains the different-colored markers listed below. 12 green markers 4 blue markers 20 red markers A marker will be randomly selected from the dr
How does the article encourage readers to try birding? By giving smaller goals than a Big Year By including details about the numbers of birds sighted By exp
Find the LCM of 18 and 20.
What’s 1+1 in-joy the points
hello, can anyone help me im stuck
. . .Yes they had at long last found it-the tomb of Tutankhamun the boy king of Egypt who had ruled a powerful nation over 3000 years before a tomb full of pric
A 14-year-old boy cuts his arm, and a few hours later he notices that it is red, swollen, and painful. Microscopic examination of this lesion would most likely
Antonio vivaldi’s the four seasons most utilized what musical technique?.