{"id":2584,"date":"2022-06-13T22:25:45","date_gmt":"2022-06-14T02:25:45","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/?p=2584"},"modified":"2022-06-13T22:25:45","modified_gmt":"2022-06-14T02:25:45","slug":"variables-in-javascript","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/2022\/06\/13\/variables-in-javascript\/","title":{"rendered":"Variables in JavaScript"},"content":{"rendered":"<p>Variables in JavaScript are, as the name suggests, anything whose values vary. In class, we pictured a variable as a box which is used to hold values. Now your next question maybe: &#8220;Why do we need variables?&#8221;. If you are using your name in a program many times over, it would be much more efficient to just store your name in a variable that you can use it later whenever required.\u00a0<\/p>\n<p>Some rules: a variable should begin with am underscore, dollar sign, or an alphabet letter. You can use a number digit after previously mentioned characters.\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2589\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/files\/2022\/06\/java-variable-300x43.png\" alt=\"\" width=\"537\" height=\"77\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/files\/2022\/06\/java-variable-300x43.png 300w, https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/files\/2022\/06\/java-variable.png 613w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Variables in JavaScript are, as the name suggests, anything whose values vary. In class, we pictured a variable as a box which is used to hold values. Now your next question maybe: &#8220;Why do we need variables?&#8221;. If you are using your name in a program many times over, it would be much more efficient [&hellip;]<\/p>\n","protected":false},"author":28304,"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-2584","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\/2584","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\/28304"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/comments?post=2584"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2584\/revisions"}],"predecessor-version":[{"id":2590,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2584\/revisions\/2590"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/media?parent=2584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/categories?post=2584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/tags?post=2584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}