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

Five-year-old benjy has an iq of 120 on the original version of the stanford-binet. his mental age is
Rehoboam, Solomon's son, had nothing to do with the division of the kingdom, except to accept it. true or false
HELP QUICKLY PLEASE... 1: in a jar of 4000 beads 30 percent are red how many are red? 2: In a jar of 350 beads 60 percent are red. How many are red? 3: a baker
Where is a bill sent if it is approved after the third reading?
"during the expansion westward, tobacco was consumed mainly in what form?"
the diameter of earth is approximately 7926 miles. the diameter of the moon is approximately 2,159 miles. Approximately how many moons would fit inside the ear
The sum of two numbers is 66. Their difference is 8. write a system of equations. Use the system to find the numbers.
I need the answer to this problem
1) WILL MARK BRAINLIEST + 10 POINTS!
The fact that us citizens elect representatives to make laws and implement public policies on their behalf is evidence that the united states government is what