What's the easiest way to stop my code when it enters an infinite loop?

Question

What’s the easiest way to stop my code when it enters an infinite loop?

Answer

It is recommended to either refresh your page or close your tab/browser when this happens as it will freeze your tab/browser.