+ 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?
2 Answers
+ 5
Here is no input needed.
+ 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);
}