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

If the primary to secondary voltage ratio is 4:1 for a transformer, what is the secondary voltage if the primary voltage is 460 volts?
If it is assumed that people vote for the candidate who comes closer to matching their own views, to win votes in a two-person race A. one candidate will move t
In this final Circular Flow example for our course, the starting point was a deep recession with 5 million cyclically unemployed people. A ______________ approa
The instructions for a 13-foot ladder state that the bottom of the ladder must be set at least 5 feet from a building. How high can the ladder safely reach on t
can you please solve x-(21-2x)=6
The method of study used by Wilhelm Wundt and his collaborators to discover the basic elements, or "structures," of mental processes was _____. a.psychonautics
During the move from A to B, the velocity decreases by half. Determine vectors for the average acceleration, average Fnet, and average velocity during the trip?
Some activists for civil rights registered their feelings by means of protest. What is the object of the preposition by means of
What is the process of converting a fraction to a decimal? 8/12 in 0.667 (right?), but i dont actually know the process to figuring it out. thank youu
2. How much is a $500 Series EE Savings Bond worth when it matures?