Friday 2 June 2017

Im using javascript and im trying to make a loop like i have shown in the code but i cant make it break out of the code

var st = 20;
var timeNow = new Date();  

var isprinted = false; 

var time = st - timeNow.getHours();
while (isprinted === false) {
    while(time = 2) {
        console.log("2h screenLeft"); 
        isprinted = true;
        return 0;
    } 
}

And it still doesent work anyone help me please i need it :'(



via Hristijan Mizimakovski

No comments:

Post a Comment