This example shows how Angular calls ngDoCheck every change detection cycle. The component tracks a value and an oldValue. When value changes, ngDoCheck detects it by comparing value and oldValue. If different, it updates oldValue and logs the change. If not, it does nothing. This way, you can add your own checks beyond Angular's default detection. The execution table shows each step: initialization, value changes, and detection cycles. The variable tracker shows how value and oldValue update over time. Key moments clarify why ngDoCheck runs often and why updating oldValue is important. The quiz tests understanding of variable states and condition results during the cycle.