{"id":3272,"date":"2023-02-26T00:21:32","date_gmt":"2023-02-26T05:21:32","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3272"},"modified":"2023-02-26T00:21:32","modified_gmt":"2023-02-26T05:21:32","slug":"javascript-statements","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/26\/javascript-statements\/","title":{"rendered":"Javascript-Statements"},"content":{"rendered":"<p>We use if\/else statements to determine if the statement within the expression within the parentheses is true or false.<br \/>\nThe basic syntax of if\/else if statements are:<br \/>\nlet name = prompt();<br \/>\nif (){<br \/>\nalert();<br \/>\n} else {<br \/>\nalert();<br \/>\n}<br \/>\nThe purpose of isNAN is to identify if the expression is not a real number and it would be determined by displaying true or false. Conditions that have &amp;&amp; are letting us know both the 1st and 2nd expressions are true. Now conditions with || are letting us know if either the 1st or 2nd expressions are true. The if statements are different from else if statements and else statements because if statements are what is going to be executed. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>We use if\/else statements to determine if the statement within the expression within the parentheses is true or false. The basic syntax of if\/else if statements are: let name = prompt(); if (){ alert(); } else { alert(); } The purpose of isNAN is to identify if the expression is not a real number and [&hellip;]<\/p>\n","protected":false},"author":27632,"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":[845096,845095],"class_list":{"0":"post-3272","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"tag-isnan","8":"tag-statements","9":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3272","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\/27632"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3272"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3272\/revisions"}],"predecessor-version":[{"id":3273,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3272\/revisions\/3273"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}