This solution is generated by ChatGPT, correctness is not guaranteed. You might also be able to find a solution fromcommunity posts.
AI solution for React Quiz on BFE.dev
27. useEffect() timing II
The code will output the following to the console:
1 2 3 4