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

In what year did the population of Latin America reach 400 million?
Help me please......
What mighr be hard about being in the Model United Nations?
Use common sense to determine whether the given event is impossible; possible, but very unlikely; or possible and likely. An accountant was struck by lighteni
Decision support systems support optimization, satisficing, and heuristic approaches. a. true b. false
Why might the lack of competition resulting from business mergers tend to lead to market failures?
Different sizes of ribbon need to be cut to go around various shapes. All of the following sizes are in inches. π , √5 ,√8 ,2√5 (a)Without using your cal
Explain one way to determine if a quadrilateral has congruent angles
Write as a mixed fraction: 22 / 3
stion 9 of 20 : Select the best answer for the question. 9. Theresa worked 9 hours on Monday and 7 hours on Wednesday. Her total pay was $156.00. What is her