Ad
  • Custom User Avatar

    If you don't declare your variables, they will be GLOBAL. And they might interfere with, say, a counter i that controls a for-loop for random tests, so random tests might either not run or never finish.

    Always declare your variables! ( And preferably with let or const. var is very much last year. :)

    ( For more info, see MDN. )