Bybit interview question

1. React - how diff works 2. Some js pattern