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

What are collective preoccupations?
Which substance acts as a buffer in
Solve 1/2 (x+5) < 2 -
Katie wants to collect over 100100100 seashells. She already has 343434 seashells in her collection. Each day, she finds 121212 more seashells on the beach. Kat
Jim is entering kennywood with 5 of his friends. At the gate they must go through a turnstile one at a time. How many ways can Jim and his friends go through th
The area of a rectangle is equal to its length times its width. If the area of a rectangle is 14x + 42 square feet, which option(s) could be the length and widt
In Act III, scenes iii and iv of Romeo and Juliet, why is Romeo considered the protagonist?
Please help with this question! I don't know which to choose.
Deluxe Building Services offers custodial services on both a contract basis and an hourly basis. On January 1, 2015, Deluxe collected $30,150 in advance on a si
A boat crosses a 200 m wide river at 3 ms-1, north relative to water. The river flows at 1 ms-1 as shown. What is the velocity of the boat as observed by a st