The given code snippet uses the ngStyle directive to color the Div text randomly.
Note: There can be multiple correct answers to this question.
Q 3. A component implements the OnInit interface. Which of ngOnInit() and the component constructor will be called first?