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

I need help on this please!
A certain mixture of paint contains 5 parts white paint for every 4 parts blue paint. If a can of paint contains 75 ounces of white paint, how many ounces of bl
a pack of 4 choclates cost 1.80 pounds how much is the price per unit
As referred to in the NSMIA, the term "covered security" would apply to preferred stock in the XYZ Corporation whose common stock is listed on the NYSE common s
Backus Inc. makes and sells many consumer products. The firm’s average contribution margin ratio is 35%. Management is considering adding a new product that wil
Use the figure below to find the measure of angle x.​
A toroidal solenoid has 590 turns, cross-sectional area 6.20 cm^2 , and mean radius 5.00 cm .Part A. Calcualte the coil's self-inductance.Part B. If the current
solve 2<2x+4<10 for x
if you are a mechanical engineer answer these questions: 1. Are communication skills (reading, writing, and speaking) necessary in this profession? 2. How are C
what is y when X is 5? The Graph below shows the answer. Y=2 when X=10