Pagina de 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. O B. 5 C. 10 D. 15

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

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

Solución

avatar
Zaqueomaestro · Tutor durante 5 años
expert verifiedVerificación de expertos
4.0 (219 votos)

Responder

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.
Haz clic para calificar: