JavaScript is called an event driven coding language since event-driven programming model. What events are mentioned in that title are events that occur with user interaction with the website. There are all kinds of different events. Every interaction the user makes with the webpage triggers a coded event. Opening the comments section, moving to the next photo, typing information and uploading it to the web page can be described as an event. Programmers use JavaScript to code a web page in a way that every interaction from user’s side will trigger an event. Ideally, triggered event must be user-friendly and transition from one event to another also must be fluent. Basically, every mouse movement, every click from the keyboard or swipe from the touchscreen must trigger specific parts of code that were designed beforehand to satisfy the user. Interaction is in real-time, thus event driven programming model is a strong model.
Reader Interactions
Comments
Leave a Reply
You must be logged in to post a comment.
Hi Levan,
I agree that event driven programming is a strong model because you can formulate responses to each event. A great example of this is Instagram. If you like a picture, each like will be added to the total likes, the post owner will be notified of the like, and the heart under the photo will turn red so you know that you liked it. Each of these events has a specific response.