Why won't the console log anything? When to While and when to For #8



I get a green check meaning that my syntax is correct and yet, nothing is logged into the console. What am I doing wrong?

var wifi = 0;
var libraryFun = function(){
        console.log("No connection sucks!")
    console.log("Now we are working!");

for (var w = 0; w >= 5; w++) {
    console.log(w +". " + "Is this working?")


This won't log unless it is called.

The loop will never run Change to <=.


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