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

Explain why numbers with a 5 in the ones place are not prime numbers
Why did the Spanish explore and colonize New Mexico and Florida in the 1600s?
example of A function whose domain is [2, infinity]
how do images or word pictures help you experience a scene in the excerpt "The Day of Destiny"?
Which Byzantine leader restored the use of icons in 843 CE? - Theodora - Justinian - Basil - Leo III
Which statement describes the general trends in electronegativity and first ionization energy as the elements in Period 3 are considered in order from Na to Cl?
You are working at establishing a computer network and communications support for incident personnel. Where are you working? a. Operations Section b. Planning S
Which statement best applies to the slope of the line below? A. the slope is negative B. the slope is zero C. the slope is positive D. the line has no slope
which term describes an enzyme
6. All of the following changes occurred in China between 1500 and 1800 except (1point) A. An increase in population B. Growth in manufacturing and trade C. Imp