This solution is generated by ChatGPT, correctness is not guaranteed.

AI solution for React Quiz on BFE.dev
26. useEffect() III

The code will output the following to the console:

1
2
4
5
6
3