{"id":3596,"date":"2023-02-28T20:01:09","date_gmt":"2023-03-01T01:01:09","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3596"},"modified":"2023-02-28T20:01:09","modified_gmt":"2023-03-01T01:01:09","slug":"blog-post-week-5a","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/28\/blog-post-week-5a\/","title":{"rendered":"Blog Post Week 5(A)"},"content":{"rendered":"<p style=\"font-weight: 400\">Variables are used to\u00a0store values\u00a0(name = \u201cIvan\u201d)\u00a0or expressions\u00a0(sum = x + y). Declare Variables in JavaScript Before using a variable, you first need to declare it. You have to use the keyword\u00a0Let(var) to declare a variable like this: let name; You can assign a value to the variable either while declaring the variable or after declaring the variable. let name = &#8220;Ivan&#8221;;<\/p>\n<p style=\"font-weight: 400\">The name must start with a letter (a to z or A to Z), underscore( _ ), or dollar( $ ) sign. After the first letter, we can use digits (0 to 9), for example, value1. JavaScript variables are case-sensitive, for example, x and X are different variables. Variable names should not begin with numbers. Initialization: giving an initial value to the variable. Declaration of a variable is informing the compiler with the variable name, the type of value the variable holds, and the initial value. In other words, there is only memory for a variable dispatched in the declaration. While in initialization there is a value set for that variable. Arithmetic operators are of 4 types Addition\u00a0?+?. \u00a0Subtraction\u00a0?\u2212?. Multiplication\u00a0?\u00d7?. Division\u00a0?\u00f7?. The concatenation operator (+) concatenates two or more string values together and return another string which is the union of the two operand strings.\u00a0The shorthand assignment operator += can also be used to concatenate strings<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3600\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/LUxqNMu9j-300x150.jpeg\" alt=\"\" width=\"300\" height=\"150\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/LUxqNMu9j-300x150.jpeg 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/LUxqNMu9j-768x384.jpeg 768w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/LUxqNMu9j.jpeg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Variables are used to\u00a0store values\u00a0(name = \u201cIvan\u201d)\u00a0or expressions\u00a0(sum = x + y). Declare Variables in JavaScript Before using a variable, you first need to declare it. You have to use the keyword\u00a0Let(var) to declare a variable like this: let name; You can assign a value to the variable either while declaring the variable or after [&hellip;]<\/p>\n","protected":false},"author":26754,"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":[],"class_list":{"0":"post-3596","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3596","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\/26754"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3596"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3596\/revisions"}],"predecessor-version":[{"id":3602,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3596\/revisions\/3602"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}