I came across the following warning when I opened src/excercise/06.js in my editor.

After a bit of googling, I found the following guideline on MDN.
This method exists primarily for backward compatibility; if possible, you should instead use addEventListener() to watch for the change event.
https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList