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

viva la casa -1. What kind of injustices did the workers hope to undo by going on strike? How did these injusticesundermine their humanity?​
Please help what is the solution to the equation AX = B?
——RELIGION—— Explain two sources for the Catholic Church's teaching on the Trinity. Explain two Catholic teachings about the Trinity.
PLEASE HELP!! ASAP!! I JUST NEED THE ANSWER!!! I WILL MARK YOU BRAINLIEST!!! Which one of the following most accurately demonstrates the flow of energy in an e
Anoche __ a dormirme temprano, pero decidí terminar mi tarea y se me hizo tarde. A. fui B. voy C. Iba D. iré
Prendendo come esempio la porta disegnata da un tuo compagno, dimmi quanta vernice ti serve per dare due mani alla porta. Sapendo che un barattolo contiene 0,75
Write an equation in slope-intercept form for the line that passes through (−2,−5) and is parallel to the line described by y=2x+5 .
True or false Writing a check on an account with insufficient funds is allowed under certain conditions?
Why are today’s maps more accurate than maps made during ancient times?
How was the location of the capital city-state determined during the Shang dynasty? Did this shift in power help or hurt the kingdom?