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

12=2+Z/-6 solve the equation
One pump fills a tank two times as fast as another pump. If the pumps work together they fill the tank in 18 minutes. How long does it take each pump working al
Which of the following statements is false? a. The method’s return type specifies the type of data returned to a method’s caller. b. Empty parentheses followi
The stress response is initiated when the anterior pituitary secretes what compound into blood capillaries? a. ACTH b. cortisol c. CRH d. all of the above
Ganesh is stacking boxes in a storage room. There are 12 boxes in all. If each box weighs 9.6 pounds, how much do the boxes weigh altogether
Suppose we’re conducting a t-test for a population mean with the following hypotheses. LaTeX: H_0 H 0 : LaTeX: \mu=50 μ = 50 LaTeX: H_a H a : LaTeX: \mu\ne50 μ
How does the human brain store and retrieve memories?
Chandler Company purchased merchandise on credit from Lighting Supply for $5,600. Chandler would record this sale in the______.
What mixed number is equivalent to 14/5
A chemist adds 0.50L of a 0.485 M copper(II) sulfate CuSO4 solution to a reaction flask. Calculate the millimoles of copper(II) sulfate the chemist has added to