{"id":3571,"date":"2023-02-28T18:35:33","date_gmt":"2023-02-28T23:35:33","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3571"},"modified":"2023-02-28T18:35:33","modified_gmt":"2023-02-28T23:35:33","slug":"5a-initializing-variables","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/28\/5a-initializing-variables\/","title":{"rendered":"5a Initializing Variables"},"content":{"rendered":"<p>Variables are declared inside a code block, which is usually part of a method, property, or delegate. Declarations specify the type followed by the name, and optionally the initialization. Initialization sets the variable to a new instance. It must be to a type that is compatible with the declaration type. For example if I were to put string a = &#8220;How Are You&#8221;; the variable a is <strong>declared\u00a0<\/strong>as a string and is initialized into &#8220;How Are You&#8221;.<\/p>\n<p>Another way I can put it is var a = &#8220;How Are You&#8221;; var specifies implicit typing. You must specify a variable before adding it into code, otherwise it will not code correctly, you might get an error, and the work would be done wrong. When learning how to code it&#8217;s important to make sure each variable is specified. If one is missing than the entire code may be ruined. It is important to understand the different ways.\u00a0 <span style=\"color: #ffffff\">ddddddddddddddcdccdc<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Variables are declared inside a code block, which is usually part of a method, property, or delegate. Declarations specify the type followed by the name, and optionally the initialization. Initialization sets the variable to a new instance. It must be to a type that is compatible with the declaration type. For example if I were [&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":[845005,845091],"class_list":{"0":"post-3571","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"tag-javascript","8":"tag-variable","9":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3571","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=3571"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3571\/revisions"}],"predecessor-version":[{"id":3572,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3571\/revisions\/3572"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}