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

Can u paraphrase the quote ”let things take their course”
How does transpiration play a  role in the water cycle ?
How is the numeral 35.012 written in words and why
How does transpiration play a  role in the water cycle ?
A pound of seedless red grapes costs $2.75. Drew must spend less than $9.35 on a bunch of seedless red grapes.Inequality:Solution:Interpretation:
Solving systems by elimination: 2x + 4y = -4 3x + 5y = -3 Please show me your work so I can do the rest myself. Thanks!
Can u paraphrase the quote ”let things take their course”
What is two thirds minus six thirds
A 1 digit number and a 3 digit number have a sum of 205.  The same two number have a difference of 195, a product of 1,000 and a quotient of 40.  What are the t
A passenger on a boat moving at 1.70 m/s on a still lake walks up a flight of stairs at a speed of 0.60 m/s , as shown in the figure . The stairs are angled at