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

One number is 1 more than 2 times another. Their product is 36. Find the numbers.
opposite reciprocal slope lines or parallel or perpendicular
Submerged basaltic volcanoes that are higher than 1 km are called A. guyots. B. hydrothermal vents. C. seamounts. D. abyssal plains.
Divide. Express your answer in lowest terms. 1/8 Divided by 4 =
After the Supreme Court decision of desegregating schools, troops had to be sent to what city to enforce the decision? Little Rock, Arkansas Topeka, Kansas Mobi
What is straight is part of a line and has two and points
Sonar technology is based on the echo-ranging behavior of : A. Sea lions B. Bats C. Moths D.seals
what is three fourths plus one third plus two sixths
Paula purchased adult and child tickets for the carnival. Tickets cost $19.95 for each adult and $9.95 for each child. Let x represent the number of adult ticke
Which sentence best describes Richard Nixon's early campaigns for office? A. He tirelessly traveled from place to place, eager to talk to as many people as poss