a couple of loops

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-27 14:38:00 +02:00
parent 12dc3057b6
commit 5868ff1a7a
5 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,5 @@
for (let i = 0; i <= 9; i++){
if (i % 2 !== 0) console.log(i);
}
let i = 0;
while (i < 10) { console.log(i); i++; }