[javascript] Is it possible to stop JavaScript execution?

Is it possible in some way to stop or terminate JavaScript in a way that it prevents any further JavaScript-based execution from occuring, without reloading the browser?

I am thinking of a JavaScript equivalent of exit() in PHP.

This question is related to javascript

The answer is