Infinite Loop Issue

The student uses a infinite loop which causes the app to crash/the page to go unresponsive. What should he do to get around this issue?

Use a timed loop. Timed loops do not cause App Lab to crash in most cases.

Presumably, your student is using an infinite loop to poll for some event. Maybe a variable change, input, or something like that. The problem is Javascript wasn’t designed for polling. That may be a bad habit from another language (Snap! comes to mind.)

Javascript is event driven. Your student needs to think of a way to use an event instead of polling or just eliminate the need for polling with a well placed function call some where else in the code.

A link to the project would help us figure out what needs to change.