{"id":4248,"date":"2023-03-02T21:34:11","date_gmt":"2023-03-03T02:34:11","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=4248"},"modified":"2023-03-02T21:37:14","modified_gmt":"2023-03-03T02:37:14","slug":"values-and-variables-in-javascript-5a","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/values-and-variables-in-javascript-5a\/","title":{"rendered":"Values and Variables in Javascript 5A"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4283 alignright\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JS-2-300x147.jpeg\" alt=\"\" width=\"300\" height=\"147\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JS-2-300x147.jpeg 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/JS-2.jpeg 320w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>Javascript is a programming language. This language contains values and variables that are assigned to each piece of data. Variables contain a value.\u00a0 For example, you can use the word:<\/p>\n<p>let<\/p>\n<p>and add the variable name &#8220;mytext&#8221; (as shown below)<\/p>\n<p>let mytext<\/p>\n<p>Then, you add the value.\u00a0<\/p>\n<p>let mytext = &#8220;I love Javascript&#8221;<\/p>\n<p>Now each time you use the variable &#8220;mytext&#8221; in your code, the code will input the original value, &#8220;I love Javascript&#8221;<\/p>\n<p>This is useful because codes can be very complex, and values and variables help so that you don&#8217;t have to retype each value throughout your code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Javascript is a programming language. This language contains values and variables that are assigned to each piece of data. Variables contain a value.\u00a0 For example, you can use the word: let and add the variable name &#8220;mytext&#8221; (as shown below) let mytext Then, you add the value.\u00a0 let mytext = &#8220;I love Javascript&#8221; Now each [&hellip;]<\/p>\n","protected":false},"author":29449,"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-4248","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\/4248","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\/29449"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=4248"}],"version-history":[{"count":2,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4248\/revisions"}],"predecessor-version":[{"id":4284,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4248\/revisions\/4284"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=4248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=4248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=4248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}