{"id":3606,"date":"2023-02-28T20:28:46","date_gmt":"2023-03-01T01:28:46","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3606"},"modified":"2023-02-28T20:28:46","modified_gmt":"2023-03-01T01:28:46","slug":"blog-post-week-5b","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/28\/blog-post-week-5b\/","title":{"rendered":"Blog Post Week 5(B)"},"content":{"rendered":"<p style=\"font-weight: 400\">JavaScript is a scripting or programming language that allows you to implement complex features on web pages &#8211; every time a web page does more than just sit there and display static information for you to look at &#8211; displaying timely content updates, interactive maps, etc. &#8211; you can bet that JavaScript is probably involved. A\u00a0function\u00a0is a sequence of statements that performs a specific operation. Functions are used to\u00a0break down a program into smaller, reusable pieces. In\u00a0javascript, a function is defined using the keyword\u00a0function\u00a0and is immediately followed by the function name and a pair of parenthesis. Inside the parenthesis, you can define any number of arguments that are passed to the function when it is called.\u00a0If we want to use the function anywhere within that program, we simply need to mention the function name followed by a semicolon and the syntax is:\u00a0<em>function_name();<\/em>. The JavaScript code within the function gets executed when that function is (called). The basic idea of a function is to reduce the number of repeated code. In JS, the\u00a0return\u00a0keyword returns a value from a task The task will return the value immediately when the keyword is encountered. This means that the task will not execute any more statements beyond the\u00a0return\u00a0keyword, and any local variables created in the task will be discarded.\u00a0<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3607\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/1lrq9keAv-dGD_gtb0TNknw-300x174.jpeg\" alt=\"\" width=\"300\" height=\"174\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/1lrq9keAv-dGD_gtb0TNknw-300x174.jpeg 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/1lrq9keAv-dGD_gtb0TNknw-1024x594.jpeg 1024w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/1lrq9keAv-dGD_gtb0TNknw-768x445.jpeg 768w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/1lrq9keAv-dGD_gtb0TNknw.jpeg 1400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript is a scripting or programming language that allows you to implement complex features on web pages &#8211; every time a web page does more than just sit there and display static information for you to look at &#8211; displaying timely content updates, interactive maps, etc. &#8211; you can bet that JavaScript is probably involved. [&hellip;]<\/p>\n","protected":false},"author":26754,"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":[],"class_list":{"0":"post-3606","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3606","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\/26754"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3606"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3606\/revisions"}],"predecessor-version":[{"id":3608,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3606\/revisions\/3608"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}