When I ran the following two JavaScript commands...

`> window.history.back(); alert("2nd");`

...I was expecting the window to go to the previous page, and then display the alert. What happens is "2nd" actually pops up first, and then the window goes back. If I reverse them like this...

`> alert("2nd"); window.history.back();`

...the commands still execute in the same order. What don't I understand about JavaScript control flow? How would I get `window.history.back();` to run first?