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

Bottleneck events are always caused by the death of most of a species’ population. Please select the best answer from the choices provided T F
how much in height is 140 centimeters
find the sum of 362+265.explain why you did or did not regroup.
What is the solution of the equation? 16 = –d + 6 a. 10 b. –10 c. –9 d. –15
Solve each of the following equations for x. a) 3x - 8 =29 b) 3 ( x - 8 ) = 28 c) 3 (x - 8) + 17 =29 d) 7x + 12 = 3x
3/10 and 2/5 common denominator
Please can you help me with questions 1-6
Can anybody unscramble these for me? They are parts of the body. a. sultgue b. cohealc c.actactar
Any tool that helps make our physical and mental processes more efficient can be referred to as which one of the following? A. Computers B. Mechanisms C. Media
what is a number mulitplyed by 8 and added by 6?