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

How did President Bush want to resolve the massive Federal deficit inherited from the Reagan administration? a. raising foreign tariffs b. cutting back on defen
Which two properties are used to define matter? A.has mass and conducts heat B.has buoyancy and volume C.has mass and takes up space D.conducts energy and has c
estimate the answer by first rounding each value then performing the operation 756622-43261
which is bigger 3/8 or 0.3
Which of the following was an organization formed by Native Americans in an effort to encourage the return of Native American lands? a. The National Farm Worker
Who am I? My philosophical method was to ask my students leading questions to help them see the conclusion that would naturally follow from the premise we start
What was a criticism made of George H.W. Bush's New World Order? a. It imposed too many restrictions on subjugated nations. b. It was vague and its parameters w
Give the range of x-2y=0 for the domain {-1,0,4} give your answers in order from least to greatest separate by comma without any spaces give the answers as deci
Which of the following is a condition in which a person alternates between extreme happiness and extreme sadness?
Which of the following was NOT a reason for United States to look beyond its boundaries in the late nineteenth century? a. to sell surplus goods and procure raw