{"id":4282,"date":"2023-03-02T21:51:58","date_gmt":"2023-03-03T02:51:58","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=4282"},"modified":"2023-03-02T21:51:58","modified_gmt":"2023-03-03T02:51:58","slug":"5a","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/5a\/","title":{"rendered":"5a"},"content":{"rendered":"<p>What is JavaScript? JavaScript is a type of computer programming language that is used to create interactive results within web browsers. So what is a variable in JavaScript? The definition of a variable is put simply as &#8220;a name of storage location&#8221;, and can be used to store data. You create or &#8220;declare&#8217; a variable by using &#8220;var&#8221; or &#8220;let&#8221; and then you give it a type, a name, and a value. This basically just states what the purpose of the variable is.\u00a0<\/p>\n<p>\u00a0 To initialize a variable you put variableName= value;. The variableName is where you will put &#8220;var&#8221; or &#8220;let&#8221;. That will be your expression. Howecer, when writingan expression, there is a difference between &#8220;initializing&#8221; a variable and &#8220;declaring&#8221; it. When intializing a varible, you are just giving it a value. When you declare a variable, you are giving it a name and a type. It is important to note that you must initialize a variable before you initiate it, otherwise you will recieve an error message. However you do not need to initialze a variable before declaring it.\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4291\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/Screen-Shot-2023-03-02-at-9.51.35-PM-300x167.png\" alt=\"\" width=\"300\" height=\"167\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/Screen-Shot-2023-03-02-at-9.51.35-PM-300x167.png 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/Screen-Shot-2023-03-02-at-9.51.35-PM-768x427.png 768w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/Screen-Shot-2023-03-02-at-9.51.35-PM.png 884w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is JavaScript? JavaScript is a type of computer programming language that is used to create interactive results within web browsers. So what is a variable in JavaScript? The definition of a variable is put simply as &#8220;a name of storage location&#8221;, and can be used to store data. You create or &#8220;declare&#8217; a variable [&hellip;]<\/p>\n","protected":false},"author":28888,"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-4282","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\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4282","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\/28888"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=4282"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4282\/revisions"}],"predecessor-version":[{"id":4292,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4282\/revisions\/4292"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=4282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=4282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=4282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}