0

Break and continue Many tall buildings, including hotels, skip the number 13 when numbering floors - often going from floor 12 t

var countOfRooms = 15; for (var i = 1; i <= countOfRooms; i++) { if (i === 13) continue; // Skip room number 13 console.log(i); }

27th Jul 2024, 9:41 AM
Gideon Mugerwa
Gideon Mugerwa - avatar
1 Odpowiedź
+ 2
what's your question? this shows all whole numbers between 1 and 15 excluding 13
27th Jul 2024, 9:53 AM
Mihaly Nyilas
Mihaly Nyilas - avatar