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

Why is mining a cause of habitat loss?
Please answer this correctly
Jim is dehydrated and has purchased several "sports drinks" to have available along his training route. Why did the team dietitian recommended that Jim purchase
(Ignore income taxes in this problem.) If you wanted to withdraw $12,000 from a bank account at the end of each of the next 20 years, approximately how much wou
plz solve this question. you don't have to solve step by step but just give me some hints​
what is the measure of angle jkl?a. 110° b. 120° c. 130° d. 140°​
Find x pls help thank you
A man walks east for 4 miles Then south for 3 miles Then west for 2 miles Then north for 1 mile Then west for 2 miles In which direction and for how far should
This question has several parts that must be completed sequentially. If you skip a part of the question, you will not receive any points for the skipped part, a
99 POINTS. DON'T GUESS WHICH OF THESE VEGETABLES HAVE THEIR OWN IMMUNE SYSTEM? SWISS CHARD POTATO ARTICHOKE MUSHROOM