Why is this an infinite loop?


#1

// Write your loop below!
var i = 2;

var a = function() {

while (i>1) {

    console.log(i);
        if (i > 2.2) {
        console.log("thats big");
        }

        i = i - 1;

        for(j = i; j <4; j-=.1) {
            console.log(j);
            console.log("above here is j");
        }

}

};

a();


#2

Because j is always less than 4.