Accenture interview question

Basic JS questions like lifecycle methods and there implementation in function based components