A good example of this happening is the window alert function.
You can't interact with the webpage at all until you hit OK and dismiss the alert. You're stuck.
Let's look at a simple example, run this code your console:
What did we get back?
Feels odd, right? Well, let's break this down line by line:
There's a really good site that slows this all down and shows this happening.