DONE by NONE interview question

How JavaScript works behind the scene?