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

PLEASE HELP THANK YOU. Witch sentence contains a verb in the simple past tense ? A- she obeys her father. B-she obeyed her father. C-she has obe
Find the perimeter of the polygon with the vertices X(−1, 3), Y(3, 0), and Z(−1,−2). Round your answer to the nearest hundredth
The sum of 12.6, 31, and 5.4 is greater then 20
25. The perimeter of a triangle is 59 centimeters. Side bis 8 centimeters longer than side a. Side c is 5 centimeters shorter than twice the length of side a. F
Find the angle theta between u=<7,-2> and v=<-1,2>
The president and Congress differ in their A constituencies B. election cycles c. constitutional powers D. all of the above
Part A: The low tempratures for a week in january in Billings, MT are listed below. Monday- -4.50 Tuesday- -6.00 Wenesday- -9.50 Thursday- -3.25 Friday- -0.75 S
2 1/3 + 6 3/5 =??????
Which of the following is one of the solutions Kennedy proposed to solve the world's problems? A. nations support the new nations by supplying the necessary a
What colors does a dog see in?