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

You and some friends went out to T.G.I.Fridays for dinner. You ordered a root beer, sweet potato fries and cheese quesadillas. The total bill came to $21.86. Y
10. How are the stories and poems in this unit similar? a. All the authors have written pieces with the same main idea. b. All the authors want to give their r
One advantage to using coal, oil, and natural gas is that they each take millions of years to replace. Please select the best answer from the choices provided a
Which city in the United States did Benjamin Banneker help design? a. Boston b. New Orleans c. New York City d. Washington, d. C.
What are two characteristics of an object that would cause it to produce a different echo than something else?
What is the meaning of dudettes
Extreme self-centeredness is referred to as narcissism. Please select the best answer from the choices provided a. True b. False
The Selva refers to the (1 point) coastal region. eastern rainforest.>>>>my answer high mountains of Peru. Sierra.
_________ founded the National Organization of Women in 1966. Fill in the blank.
How many meters are in 1000 millimeters? 1 10 100 10000