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

Which one of the following dietary guidelines is incorrect? a. Consume less than 2,300 mg of sodium per day. b. Choose fiber-rich fruits, vegetables, and whol
what is a typical example of gothic character
A(n) _____ wave best describes a wave whose direction of travel is perpendicular to the displacement of the medium.
how to make a parallelogram with equal sides and no right angles
Angie read 3 books in 4 days, and each book contained 320 pages. If Angie read the same number of pages each day, how many pages did she read per day?
How might foreign investment be problematic for a transitioning economy?
Which of these is always part of using the scientific method
what were the advantages of cotton as a crop
Anyone who can answer this would be a great help to me!
what item did Eli Whittney firt manufacture to demonstaate the benifits of interchangeable parts?