Basically, when I put an addEventListener in my code, does the script stop executing until the event happens and gets listened or the code keeps getting executed no matter what?
I mean, if an event that I want to listen and that is placed at the start of my script does not happen, does it block my whole script?
If you can, don't just answer yes or no, I would be glad if you could tell what the interpreter does in those situations.