{"id":3574,"date":"2023-02-28T18:43:08","date_gmt":"2023-02-28T23:43:08","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3574"},"modified":"2023-03-02T21:28:36","modified_gmt":"2023-03-03T02:28:36","slug":"5b-functions-javascript","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/28\/5b-functions-javascript\/","title":{"rendered":"5b Functions Javascript"},"content":{"rendered":"<p>A function in JavaScript is similar to a procedure a set of statements that performs a task or calculates a value, but for a procedure to be a function, it should take some input and return an output where there is some obvious relationship between the input and the output. To use a function, you must define it somewhere in the scope so it is specified. A function can be anonymous.\u00a0<\/p>\n<p>A JavaScript function is defined with the keyword\u00a0function, followed by a name, and with parenthesis.\u00a0Functions can contain numbers, letters, digits, dollar signs. An example would look like this\u00a0Function name (parameter 1, parameter 2, parameter 3) {\u00a0after the curly bracket is where the code would be executed. JavaScript is a great tool to use, it takes focus and hard work to learn. Once you learn how to input functions, it all becomes easier to use, functions are key when using JavaScript.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A function in JavaScript is similar to a procedure a set of statements that performs a task or calculates a value, but for a procedure to be a function, it should take some input and return an output where there is some obvious relationship between the input and the output. To use a function, you [&hellip;]<\/p>\n","protected":false},"author":24671,"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],"class_list":{"0":"post-3574","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"tag-functions","8":"tag-javascript","9":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3574","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\/24671"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3574"}],"version-history":[{"count":2,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3574\/revisions"}],"predecessor-version":[{"id":4271,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3574\/revisions\/4271"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}