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

LAST ONE! PLEASE HELP! WILL MARK BRAINLIEST!
please help, i im having trouble
What is the length of AC ? Enter your answer in the box. units Triangle A B C with vertical side A C. Vertex B lies to the right of side A C. Angle A a
Translate the sentence into an inequality. Eight times the sum of a number and 29 is less than 17 Use the variable for the unknown number.
Two heterozygous purple flowering pea plants are crossed. If purple is dominant over white, what are the expected phenotypic results?
801,504 round to the nearest thousand​
facts about syphilis
Gabriel invests $9600 in two different accounts. The first account paid 13 %, the second account paid 6 % in interest. At the end of the first year he had earne
Harper works at an electronics store as a salesperson. Harper earns a 6% commission on the total dollar amount of all phone sales she makes, and earns a 5% comm
Is y=6, y=3x+4 consistent or inconsistent