{"id":3191,"date":"2023-02-20T14:58:49","date_gmt":"2023-02-20T19:58:49","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3191"},"modified":"2023-02-20T14:58:49","modified_gmt":"2023-02-20T19:58:49","slug":"javascript-functions","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/20\/javascript-functions\/","title":{"rendered":"JavaScript-Functions"},"content":{"rendered":"<p>A function in JavaScript is a way for a person to organize the codes they have created, maintain them, or even reuse them. The functions are putting together statements. Those statements show the relationship between input and output. The functions all have parentheses. brackets, a name, they also are passed zero or more pieces of information, and sometimes turn a value. The calling function is when we call the function we named. To pass a function argument means passing the value to the function. The purpose of the return keyword is to return data back to the called function we started with.<br \/>\nAn example of all of this is: <\/p>\n<p>function myFunction(a, b) {<br \/>\n  return a * b;<br \/>\n}<\/p>\n<p>I think&#8230;I hope I explained this well. This has been the most difficult part of this course for me. Well along with the Exams.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A function in JavaScript is a way for a person to organize the codes they have created, maintain them, or even reuse them. The functions are putting together statements. Those statements show the relationship between input and output. The functions all have parentheses. brackets, a name, they also are passed zero or more pieces of [&hellip;]<\/p>\n","protected":false},"author":27632,"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":[845092,845005,845093],"class_list":{"0":"post-3191","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"tag-functions","8":"tag-javascript","9":"tag-return-keyword","10":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3191","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\/27632"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3191"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3191\/revisions"}],"predecessor-version":[{"id":3192,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3191\/revisions\/3192"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}