{"id":4081,"date":"2023-03-02T19:04:44","date_gmt":"2023-03-03T00:04:44","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=4081"},"modified":"2023-03-02T19:04:44","modified_gmt":"2023-03-03T00:04:44","slug":"why-is-javascript-event-based-7a","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/why-is-javascript-event-based-7a\/","title":{"rendered":"Why is Javascript &#8220;event-based&#8221;? 7a"},"content":{"rendered":"<p><span style=\"font-weight: 400\">To put it simply, Javascript is considered \u201cevent-based\u201d because it reacts to an event! The main purpose of java is for someone to constantly be taking action, and not for the program to close but to keep responding to the actions. For example, just scrolling down a common page that view, Java sits and waits for your actions, whether you type something in a search bar, or even click and highlight a specific area. This is java reacting to an event! So every time you do something on a web browser that creates this event, and java will then react, and do the action in which you intended. On top of that, java will also maintain a list of these events as well, this is called an event queue. The event queue is set up where the first element to enter is also the first one to leave. Java script is considered event-based because it is a coding language that reacts to events as they occur.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To put it simply, Javascript is considered \u201cevent-based\u201d because it reacts to an event! The main purpose of java is for someone to constantly be taking action, and not for the program to close but to keep responding to the actions. For example, just scrolling down a common page that view, Java sits and waits [&hellip;]<\/p>\n","protected":false},"author":29445,"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":[10531],"tags":[845099,79070,845157,143,845005,178],"class_list":{"0":"post-4081","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"tag-coding-language","8":"tag-event","9":"tag-event-based","10":"tag-internet","11":"tag-javascript","12":"tag-mis","13":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4081","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\/29445"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=4081"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4081\/revisions"}],"predecessor-version":[{"id":4082,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4081\/revisions\/4082"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=4081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=4081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=4081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}