+ 1

javascript no input

hello, i have recently started learning coding and everything went well until lesson 20.1 this is my code: var countOfRooms = 15; // Your code here for(countOfRooms=1; countOfRooms<=15; countOfRooms++) { if(countOfRooms==13) continue; console.log(countOfRooms); } the output of the result is fine but there is “no input”, can you help me?

20th Jan 2023, 8:36 PM
Luis Fischer
2 Answers
+ 5
Here is no input needed.
20th Jan 2023, 8:49 PM
JaScript
JaScript - avatar
+ 3
Are you receiving an error because of there not being an input? I don't think this will have an impact, so much, but you could change the variable in your loop. for(int j = 1; j <= countOfRooms; j++) { if(j == 13) continue; console.log(j); }
20th Jan 2023, 8:57 PM
Ausgrindtube
Ausgrindtube - avatar