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

help? help help help help...
How much in FICA was deducted from this weekly check? es A) $40.32 B) $49.75 C) $66.39 D) $9.43
i need help asap with this problem1/3)3
A lake is different from a sea in that a sea is made of salt water and a lake is usually fresh water. True or false?
i am noiec i hope pls
What is the area of the triangle 7 cm 10 cm Area = [?] cm?​
3) 144 students went on a field trip. Seven buses were filled and 4 students traveled in cars. How many students were in each bus?
3. The equation of motion of a SHM oscillator is x=0.5msin(2πf)t, where x is in meter and t is in seconds. If the position of the oscillator is at x=0.25m and t
what do you subtract to 47/6 to make 7
Lisa paid a total of $695 for tuition and lab fees for fall semester. Tuition for her courses cost 605 more than lab fees. How much did her tuition cost?