Junglee Games interview question

lifecycle of the javascript