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 factor affects the color of a star?
Which of the following is not one of the Cs of team players?A. ConscientiousB. CommittedC. CollaborativeD. CompetentE. All of these are Cs of team players
help with microbiology!
Why are there no trees in the tundra
It is against the law to send certain things through the mail. Do you think the government should be able to regulate what people send in the mail? Explain.
What is the answer to 7/5 = 10.5/b
Express the following rate as a unit rate. answering 36 questions in 3 minutes 18 questions per minute 12 questions per minute 15 questions per minute 36 quest
Why was the United States interested in the Philippines?
An animal shelter spends $4.50 per day to care for each bird and $6.50 per day to care for each cat. Kaylee noticed that the shelter spent $96.00 caring for bir
Which of the following would be appropriate to measure in centimeters? the length of a paperclip the yearly increase in a child's height the width of a swimm