{"id":2560,"date":"2022-06-13T11:10:29","date_gmt":"2022-06-13T15:10:29","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/?p=2560"},"modified":"2022-06-13T11:10:29","modified_gmt":"2022-06-13T15:10:29","slug":"week-10-blog-post","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/2022\/06\/13\/week-10-blog-post\/","title":{"rendered":"week 10 blog post"},"content":{"rendered":"<p>In JavaScript, we use functions to create things and perform tasks. It is an organizational tool that creates a maintainable, reusable code. Functions work to combine code together to create something and allows for it to be easily found. It groups things together and makes your code able to be used again. They are a vital part of creating any code. The function must have a name attached to it like the one from our example in class, &#8216;function showDistance()&#8217;. Then they contain information about what is going to happen in this function, &#8216;(speed, time)&#8217;. And then with this data we attach the value to it by alerting how this information will be used, &#8216;alert(speed * time);&#8217;. By using something called a function call, we can input actual values to this equation that we have created through our function and get real answers. This real answer is &#8220;returned&#8221; as the value of &#8220;distance&#8221; in this case. Functions are so important to creating a simple way to determine what it is you are looking to find out, or looking to create through your code. The way it is reusable is because you can attach new values to the function call and do it multiple times, getting all the answers you are looking for.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In JavaScript, we use functions to create things and perform tasks. It is an organizational tool that creates a maintainable, reusable code. Functions work to combine code together to create something and allows for it to be easily found. It groups things together and makes your code able to be used again. They are a [&hellip;]<\/p>\n","protected":false},"author":26168,"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-2560","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\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/users\/26168"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/comments?post=2560"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2560\/revisions"}],"predecessor-version":[{"id":2561,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2560\/revisions\/2561"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/media?parent=2560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/categories?post=2560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/tags?post=2560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}