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

Is 0.127 a rational number
Write equation in function form 2x+2y=8 and 6x-3y=12
Write equation in function form y-3x-11=0
What is a scale on a map?
Tasha believes that she can rewrite the difference 120 - 36 as a product of the GCF of the 2 numbers and another difference. Is she correct?
Anyone know how to do this kind of algebra?  Compute the discriminants of the next two quadratic equations. Compare the result in (A) to that in (B). What do y
The gram formula weight of phosphoric acid is 98.00 g/mol, and the density of 85.0% phosphoric acid is 1.685 g/mL. Could you describe how ...
help me the area of a rectangular roof of a doghouse is 756 square inches. the length of the roof is 108 inches. how many inches wide is the roof? show the math
The force between a pair of 0.001 C charges is 200 N. What is the distance between them?
Explain why a mixed number is not in the set of intergers or whole numbers