JavaScript is event driven because it is interactive. It’s waits for the user to do something in it and it then executes and runs the code. It can interact with HTML elements, which they are event emitters which they are able to emit events. JavaScript uses the event driven model, in order for it to start it needs an event first. It responds to events and actions that are created by the user or system, JavaScript reacts to the event, that is one of the sole-purposes for the program, it keeps responding to the event or action that is placed within the system. JavaScript maintains a list of events which happened. It loops through and connects functions to the events. JavaScript is a very helpful tool no matter how you use it, it’s a good skill to learn and will be helpful when using it for future jobs, careers, and is a great skill to put on your resume.
Reader Interactions
Comments
Leave a Reply
You must be logged in to post a comment.
Hi Sami, I think that you did a great job here in describing why JavaScript is event driven. I agree on your points as JavaScript will always look for an event to start and keep looking for events to run until it just can not anymore.