- 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
2 Respostas
+ 4
You can do it like this.
var countOfRooms = 15;
for (i=1; i<=countOfRooms+1; i++){
if (i==13){
continue;
}
console.log(i);
}
+ 1
Thanks