Inicio
/
Tecnología
/
8. What Will the Following Program Display in the Console? Var Sum = 0) Fon(var 1 -0) 1 (5) 1++)( Sum = Sun Is ) Console. Log(sum); A.

Problemas

8. What will the following program display in the console? var sum = 0) fon(var 1 -0) 1 (5) 1++)( sum = sun is ) console. log(sum); A. O B. 5 C. 10 D. 15

Roztwór

Zaqueo maestro · Tutor durante 5 años
Weryfikacja ekspertów
4 (219 Votos)

Respuesta

The given program contains several syntax errors and is not a valid JavaScript program. Therefore, it will not display anything in the console. The correct answer is A. 0.