-1

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.

1 Answers1

1

Javascript eventloop

https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop

The following link would explain you well. if still you are having problem feel free to ask.