{"id":3341,"date":"2023-02-27T20:15:50","date_gmt":"2023-02-28T01:15:50","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3341"},"modified":"2023-02-27T20:15:50","modified_gmt":"2023-02-28T01:15:50","slug":"essentials-of-javascript-5a","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/27\/essentials-of-javascript-5a\/","title":{"rendered":"Essentials of JavaScript (5a)"},"content":{"rendered":"<p>A variable in JavaScript is simply a name of storage location to hold values. A variable can be a string of characters, a string of numbers, just numbers, or a mix of both. To create a variable, you must put \u201cvar\u201d in front of the variable name with valid variable syntax. An initialized variable is created with a value while declared variables are just created with no assigned value. Variables can contain letters, digits, underscores, and dollar signs, but they must start with a letter, dollar sign, or an underscore. Variables are case sensitive. You can refer to variables in a separate string, but they do not do into the string quotations; instead, they are separated by a \u201c+\u201d in between string text.<\/p>\n<p>JavaScript can do a variety of mathematical operations: addition, subtraction, division, modulus. You can compute addition and subtraction using \u201c+\u201d and \u201c-\u201c, and you can compute multiplication and division using \u201c*\u201d and \u201c\/\u201d. Modulus is computed by dividing the first number by the second number and then saving the remainder; it\u2019s computed using \u201c%\u201d.<\/p>\n<p>I think learning JavaScript has been very interesting because it\u2019s cool to see how easy it is to code simple commands, and the results are immediate. Seeing the backend of how my favorite websites work unlocks a lot of the mystery behind the web and different websites, and can also be useful if I want to create my own website one day.<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3368 aligncenter\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/js-300x143.jpg\" alt=\"\" width=\"468\" height=\"223\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/js-300x143.jpg 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/js-768x365.jpg 768w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/js.jpg 972w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A variable in JavaScript is simply a name of storage location to hold values. A variable can be a string of characters, a string of numbers, just numbers, or a mix of both. To create a variable, you must put \u201cvar\u201d in front of the variable name with valid variable syntax. An initialized variable is [&hellip;]<\/p>\n","protected":false},"author":29444,"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-3341","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\/3341","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\/29444"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3341"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3341\/revisions"}],"predecessor-version":[{"id":3369,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3341\/revisions\/3369"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}