Question about loops

Why does the first loop print out but not the second loop? what am I doing wrong?

for (var i = 1; i < 2; i++) {
    console.log("This is the first loop");
};

for (var y = 2; y < 1; y--) {
    console.log("This is the second loop");
};

Is 2 less than 1 ?

1 Like

haha, thanks . (yikes I need some serious help)

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.