{"id":4342,"date":"2023-03-02T22:59:12","date_gmt":"2023-03-03T03:59:12","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=4342"},"modified":"2023-03-02T22:59:12","modified_gmt":"2023-03-03T03:59:12","slug":"javascript-an-event-driven-program-7a","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/javascript-an-event-driven-program-7a\/","title":{"rendered":"Javascript: An Event-driven Program 7A"},"content":{"rendered":"<p>Javascript was created to be event-driven because it relies on the actions (events) of users to carry out specific codes. Javascript is used to create forms, respond to clicks, and submit data to programs. Each of these events require a response. This can be best explained through the lens of a website like Amazon. Amazon is a very interactive website which uses many functions. In order to search items, users must click the search button. This is an event that requires a response. All of the data under that search will be pulled up and made accessible to the user. Also, in order to purchase an item, users must put items into their cart, enter their name, address and credit card info, and choose a chipping method. These actions are all events that codes must respond to. These codes are very complex because they must have the proper reaction to each user event.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4193\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JavaScript-logo-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JavaScript-logo-300x300.png 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JavaScript-logo-150x150.png 150w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JavaScript-logo-768x768.png 768w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JavaScript-logo.png 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Javascript was created to be event-driven because it relies on the actions (events) of users to carry out specific codes. Javascript is used to create forms, respond to clicks, and submit data to programs. Each of these events require a response. This can be best explained through the lens of a website like Amazon. Amazon [&hellip;]<\/p>\n","protected":false},"author":29449,"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-4342","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\/4342","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\/29449"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=4342"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4342\/revisions"}],"predecessor-version":[{"id":4346,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4342\/revisions\/4346"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=4342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=4342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=4342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}