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

Find a rational number between -1/4 and 2/5
Which of the following is a reason why the demand for salt was as high as gold at one time? Salt could be used as medicine. Salt was necessary to preserve meat.
What is true about the sum of the measures of any two non-right angles in a right triangle?
Heterozygous genes will always display a dominant trait.
Which sentence contains an adjective clause? A. Jan saw a stranger's wallet lying on the ground. B. The man whose wallet Jan found gave her a reward. C. Last Tu
A number is doubled and then increased by seven. The result is ninety three. What is the origonal number
Which statement best describes the relationship between proteins and nucleic acids? Proteins read the instructions that are contained in nucleic acids. Nucleic
Much of Europe was drawn into the war because of what?
when and where was Hernando de Soto born
What are the disadvantages of wind pollution