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

True or false? hick says that it is possible to show that each item of human pain serves the divine purpose.
What is slope and how is it determined from a graph?
Can you please solve and explain how
Plzz help me solve questions 15 and 16...!!
The population of a local species of dragonfly can be found using an infinite geometric series where a1 = 42 and the common ratio is 3/4. Write the sum in sigma
Who speaks the famous words from heart of darkness, "the horror! the horror!"?
You are making cookies for a party. The ratio of Cookie Tray A to Cookie Tray B to Cookie Tray C is 2 : 3 : 4. If you need to make a total of 171 trays, how man
Geometry math question please help
You have to interconnect a notebook computer and a cell phone. the notebook computer supports bluetooth, usb, firewire, and ieee 1284 connections. however, you
1.What is the y-intercept of the plane whose equation is 4x + 5y – z = 20? (5, 0, 0) (0, 5, 0) (0, 4, 0) (0, 0, 4) 2.Which equation has intercepts at X(