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

An office supply store has five different packages of black ink pens which is the best deal available on black ink pens at this office supply
What is one change that people can make to reduce the amount of new mineral materials being extracted and used?
Pencils cost 25p each. Mr smith spends £15 on pencils. Work out the number of pencils he gets.
Bill needs to build a rectangular sheep pen The pen must have a perimeter of 24 m Every half meter of fencing costs him £1.20 Work out the cost of he fence use
g(t)=−9t−4 g ( ? ) = 23
(PLEASE HELP) Which of the following groups of people sent the most immigrants to Mexico in the 19th and 20th centuries? U.S Citizens Panamanians Spanish Arg
What is a newly industrialized nation? Select one: a. a country with an agrarian based economy, but social and political progress b. a country with a more advan
If the terminal side of an angle In standard position passes through the point (20, -21), then which of the following functions will be positive? A. Cosecant B
I have no idea what it means ​
What is the dependent variable that impacts the amount of solar energy in a location? A. Equator B. Longitude C. Prime meridian D. Latitude