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

What job employed the majority of people in egypt?
What is the exact volume of a sphere that has a radius of 7.5 ft? ___π ft3
Twelve of the 40 cars pulled by the locomotive were tankers. A. What Fraction of the cars were tankers? B. What Percent of the cars weren't tankers? Thanks So S
Is 25 milligrams lighter or heavier than 25 centigrams
Fiona is serving iced tea and lemonade at a picnic. She has only 44 cups in which to serve the drinks. If x represents the number of glasses of iced tea and y r
Write these fractions in order from least to greatest:5/8,2/12,8/10
What primary benefit did Theodore Roosevelt see in digging a canal through Panama? It would facilitate better understanding between Colombia and the United Stat
What two numbers add to make twenty and have a difference of four?
Write these fractions in order from least to greatest:5/8,2/12,8/10
Make a equation to solve this problem: A number is 1/7 of another number. The difference of the numbers is 18. (assume that you are subtracting the smaller numb