console.log(…) allows to write messages into the debugging console. Thus, it is a handy and cheap way to write debug messages.
If the message text is prefixed with %c, the second parameter of console.log can be given a set of CSS formatting rules that change the appearance of the written log messages.