DEV Community

Discussion on: What The For Loop?

Collapse
 
ytjchan profile image
ytjchan

Lazy way:

console.log("1, 3, 5, 7, 9, 11, 13, 15, 17, 19");

(I call it utilitarian)

Collapse
 
yechielk profile image
Yechiel Kalmenson

😂

Though if I asked you for all the odd numbers up to 100 or 1000 your way becomes way more tedious suddenly... 😉