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 of the following stages of the cell cycle occurs immediately prior to mitosis? (A) G1 (B) G2 (C) S (D) M (E) cytokinesis Can you please explain with some
What does compris mean in French ???
What is NAFTA? What countries are involved?
What is a unit of area with dimensions 1unit x 1unit x 1unit= ?
solve quadratic equation by factoring How do you do it 3k^2 + 72 = 33k
How many quarts in 24 pints?
which of the following would not make a good insulator* rubber*plastic*wood*metal
which of the following would not make a good insulator* rubber*plastic*wood*metal
a rectangular field with a area of 8000m2 is enclosed by 400m of fencing. determine dimensions to nearest tenth of a metre
Which statement best describes a capsid? a. A capsid defines the shape of the virus. b. A capsid is the outside coat of the virus. c. A capsid is a protein coat