Problemas
7. What will the following program display in the console? For(vor 1 -0; 1 <4; 10+) console, log(1); ) A. 0123 B. 01234 C. 123 D. 1234
Roztwór
Diana
maestro · Tutor durante 5 años
4.4
(326 Votos)
Respuesta
The given program contains a syntax error. The correct syntax for a for loop in JavaScript is:for (initialization; condition; increment) {// code to be executed}In the given program, the initialization and increment statements are incorrect. Therefore, the program will not execute and will display nothing in the console.So, the correct answer is: None of the above.