MX interview question

JavaScript Life Cycle