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

The police department is excited to have some new motorcycle as units. One officer said that these motorcycles can go from 0 miles per hour to 80 miles per hour
okay i need help with this question peoples
During the first 3 centuries AD, the Roman Empire produced coins in the Eastern provinces. Some historians argue that not all these coins were produced in local
Question of the day! Rachel bought 2 pounds of apples and 3 pounds of peaches for a total of $10.45. The apples and peaches cost the same amount per pound. What
You live in Florida, and you have decided to prepare your home for hurricane season. Which of the following actions would LEAST help you achieve your goal? A) c
Anyone mind taking a bit of their time to help me? I’d appreciate it. Ty!
Tidal fluctuations can affect the abundance of aquatic organisms in an ocean environment. Which tide occurs only once per day and would therefore have the least
A sales analyst listed the probabilities of profits and losses in dollars for a certain company. Find the mean for the probability distribution.
Help me please!!!! Please!!!!
Which colony was first settled by Dutch settlers?