{"id":4352,"date":"2023-03-02T23:15:40","date_gmt":"2023-03-03T04:15:40","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=4352"},"modified":"2023-03-02T23:15:40","modified_gmt":"2023-03-03T04:15:40","slug":"6a-if-statements","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/6a-if-statements\/","title":{"rendered":"(6a) If Statements"},"content":{"rendered":"<p>Hello class,<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-4353\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/DB-6a-if-pic-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/DB-6a-if-pic-225x300.jpg 225w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/03\/DB-6a-if-pic.jpg 735w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/p>\n<p>One of the most important thing in learning JavaScript is to learn If statements. There three types of If statements;<\/p>\n<ol>\n<li>If statement.<\/li>\n<li>If else statement.<\/li>\n<li>If else If statement.<\/li>\n<\/ol>\n<p>We have to know that If statement will execute whether the condition is true or false except in the first situation when \u201cIf\u201d is used without \u201celse\u201d then the program will evaluate the content only if the expression is true. On the other hand, \u201cIf else\u201d statement checks if the first condition is true it executes that code. If the condition is false, the second code is executed. \u201cElse if\u201d statement after \u201cIf\u201d statement will evaluate a second condition if the fist condition is false. Sometimes, it is confusing but fun to learn. \u00a0\u00a0\u00a0\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello class, One of the most important thing in learning JavaScript is to learn If statements. There three types of If statements; If statement. If else statement. If else If statement. We have to know that If statement will execute whether the condition is true or false except in the first situation when \u201cIf\u201d is [&hellip;]<\/p>\n","protected":false},"author":29240,"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-4352","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\/4352","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\/29240"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=4352"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4352\/revisions"}],"predecessor-version":[{"id":4354,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4352\/revisions\/4354"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=4352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=4352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=4352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}