Any advice on avoiding infinite loops?

Question

Any advice on avoiding infinite loops?

Answer

Before running a loop take a quick look at your logic and make sure you’re changing your terminating condition’s variables so that they will eventually terminate. If you do enter an infinite loop try refreshing/closing your tab/browser.