{"id":3300,"date":"2023-02-27T13:31:53","date_gmt":"2023-02-27T18:31:53","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3300"},"modified":"2023-02-27T13:31:53","modified_gmt":"2023-02-27T18:31:53","slug":"why-is-javascript-event-driven","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/27\/why-is-javascript-event-driven\/","title":{"rendered":"Why is JavaScript event-driven?"},"content":{"rendered":"<p>JavaScript is event-driven because it responds to events that occur on a web page, like user actions such as clicking a button or scrolling on the page. Then when an event is triggered JavaScript will do a specific set of instructions or functions, which are created by the programmer to respond to the event that user engaged in. JavaScript can handle multiple events at the same time and will respond to user interactions without blocking the use of other code. For example, when a user clicks a button on a web page, an event is triggered then the JavaScript code can be used to respond to that event by updating the content on the page being interacted with. This change can be a pop up that occurs or even the style could be different. Overall, the event-driven architecture of JavaScript allows it to respond to a wide range of events and provide a more interactive and engaging user experience on web pages without interrupting other code as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript is event-driven because it responds to events that occur on a web page, like user actions such as clicking a button or scrolling on the page. Then when an event is triggered JavaScript will do a specific set of instructions or functions, which are created by the programmer to respond to the event that [&hellip;]<\/p>\n","protected":false},"author":29435,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[663943],"tags":[],"class_list":{"0":"post-3300","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-instructor","7":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/users\/29435"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3300"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3300\/revisions"}],"predecessor-version":[{"id":3301,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3300\/revisions\/3301"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}