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

simplify this expression b+2+5b
An animal shelter has 36 kittens and 12 puppies for adoption. What is the ratio of puppies to kittens.
how do you do expanded form in three ways to the number 37,917,545
why is it important to notice other's attributes
What was the "Era of Good Feelings"? a time when Americans moved West a time when there was little political strife a time when Federalists held political power
A giant star has a luminosity of 300 its color is most likely to be a. yellow red b.black c.white d.blue white
What is the term for African storytellers, who shared proverbs, songs, and stories about ancestors with the younger generation, who in turn passed it down to th
X is at most 30 so whats the answer
*simplify expression* 8x - 7y - (3 - 6y)
What publication convinced colonists that it was time to make the break from Britain and create a new nation of their own?