{"id":4002,"date":"2023-03-02T17:57:19","date_gmt":"2023-03-02T22:57:19","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=4002"},"modified":"2023-03-02T17:57:19","modified_gmt":"2023-03-02T22:57:19","slug":"who-drives-events-in-code-javascript-does","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/who-drives-events-in-code-javascript-does\/","title":{"rendered":"Who Drives Events in Code? Javascript Does!"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-4009\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JS-1-300x200.jpeg\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JS-1-300x200.jpeg 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JS-1-1024x682.jpeg 1024w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JS-1-768x512.jpeg 768w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JS-1.jpeg 1400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><span style=\"font-weight: 400\">As we\u2019ve learned, there are three components to a web page. There\u2019s HTML which is in charge of laying down the foundation of a website. Then, there\u2019s CSS, which is in charge of making everything look visually appealing. Lastly, there is Javascript. Javascript is considered event-driven because it is all based on interactivity. JS is what adds interactivity to web pages. Essentially, it waits for the user to interact on the webpage, and then executes the code. An event could be something as simple as a user scrolling on a website or typing into a textbox. Javascript then has the ability to have code written to determine how the website should respond to these events. We\u2019ve seen Javascript\u2019s ability to be event-driven countless times throughout this course. For example, anytime we have worked with code that prompts us to type things into a textbox is JS using interactivity. Like in assignment 11, whatever we typed in the textbook triggered what was to come next and also what was to come in the final answer. All in all, Javascript is important when making websites interactive and is most definitely event-driven.\u00a0<\/span><\/p>\n<p>Image link: https:\/\/levelup.gitconnected.com\/6-javascript-code-snippets-for-solving-common-problems-33deb6cacef3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we\u2019ve learned, there are three components to a web page. There\u2019s HTML which is in charge of laying down the foundation of a website. Then, there\u2019s CSS, which is in charge of making everything look visually appealing. Lastly, there is Javascript. Javascript is considered event-driven because it is all based on interactivity. JS is [&hellip;]<\/p>\n","protected":false},"author":29427,"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":[845065,845099,845092,143,845005],"class_list":{"0":"post-4002","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"tag-benefit","8":"tag-coding-language","9":"tag-functions","10":"tag-internet","11":"tag-javascript","12":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4002","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\/29427"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=4002"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4002\/revisions"}],"predecessor-version":[{"id":4011,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4002\/revisions\/4011"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=4002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=4002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=4002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}