I understand that Node.js is asynchronous and uses the event loop to perform I/O tasks. I understand that your code will be parsed first from top to bottom and then later execute user defined callbacks if there are any.
To my understanding writing to the console is also a form of I/O operation (Maybe I'm wrong for thinking is it also an I/O task. Explanation needed if I'm wrong)
So what I don't get is that how/why does all console logs get executed first no matter the position in the script since it is also a form of I/O task?