While there are some ways to detect having devtools open[1], this website isn't actually using them.
Instead, it just always writes these messages to the console.
Before navigating to the answers, it clears the console so you don't see the messages that were logged before.