AntStack interview question

How JavaScript works in the browser.