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 higher the bowling score the better. The lower the golf score the better. Assume both are normally distributed. a. Suppose we have a sample of the Santa Ana
Solve for X 1.) 5(4)^x=320 solve for x 2.) 7 (1/3)^x=7/27 solve for x
Each extra worker produces an extra unit of output up to six workers. After six, no additional output is produced. Draw the total product of labor, average prod
Suppose that $2000 is invested at a rate of 2.6% , compounded semiannually. Assuming that no withdrawals are made, find the total amount after 10 years.
benefits of democracy​
mako?The marked price of a watch is 30% above the cost price. When it is sold allowing20% discount on it, there is a gain of Rs 150. Find the marked price and t
A mass of 5 kg stretches a spring 10 cm. The mass is acted on by an external force of 10sin( t ) N(newtons) and moves in a medium that imparts a viscous force o
Construct a polynomial function with the stated properties. Reduce all fractions to lowest terms. Second-degree, with zeros of −7 and 6, and goes to −∞ as x→−∞.
PLEASE help me solve this question! No nonsense answers please!
why is studying history important?