- 1

I don't know how to do it without changing the countofrooms

This is what I did var countOfRooms = 16; // Your code here for(i=1;i<=countOfRooms;i++){ if(i==13){ continue; } console.log(i); } But this is the original That they give you var countOfRooms = 15; //your code goes here

28th Aug 2021, 9:21 PM
David
David - avatar
2 Antworten
+ 4
You can do it like this. var countOfRooms = 15; for (i=1; i<=countOfRooms+1; i++){ if (i==13){ continue; } console.log(i); }
29th Aug 2021, 12:47 AM
Simba
Simba - avatar
+ 1
Thanks
29th Aug 2021, 12:33 PM
David
David - avatar