6 lines
120 B
JavaScript
6 lines
120 B
JavaScript
|
for (let i = 0; i <= 9; i++){
|
||
|
if (i % 2 !== 0) console.log(i);
|
||
|
}
|
||
|
let i = 0;
|
||
|
while (i < 10) { console.log(i); i++; }
|