While Loop in Javascript


#1

Towards the end of the While Loop in Javascript video, Ivan shows an if(USER PRESSES MOUSE KEY) function.

Does anyone know how to get it to run? What does the code look like?

So that the while loop stops when the user presses the mouse key?