Simple javascript console log (FireFox) -


I am trying to log changes of values ​​in the console (firefox / fire fly, mac).

  if (calculate and lift; 1000) {count = count + 1; Console.log (count); SetTimeout ("Startup", 1000); }  

This is refunding only 1 value. After that he stops.

Am I doing something wrong or is there any other effect on this?

You do not have a loop Use only a conditional statement while

  var number = 1; While (calculation> 1000) {count = count + 1; Console.log (count); SetTimeout ("Startup", 1000); // Do you really want to do this 1000 times? }  

Better:

  var number = 1; SetTimeout (startProgress, 1000); // I'm guessing where you want it (calculation & lt; 1000) {console.log (count ++); }  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -