{"id":2747,"date":"2022-06-19T22:24:44","date_gmt":"2022-06-20T02:24:44","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/?p=2747"},"modified":"2022-06-19T22:24:44","modified_gmt":"2022-06-20T02:24:44","slug":"week-12-post","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/2022\/06\/19\/week-12-post\/","title":{"rendered":"Week 12 Post"},"content":{"rendered":"<p>Why do we use loops?<\/p>\n<p>We use loops in JavaScript to perform an action multiple times. Loops allow us to do this without having a crazy amount of unnecessary code. We add a condition to the loop so that way it will run as long as the condition is true. As soon as the condition is false, the loop will stop running. This allows for certain tasks like mathematical ones in which we add increments to a total to be relatively easy to code for.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/miro.medium.com\/max\/1400\/1*Wal8vgWVHiYnM0IrnK0p3w.jpeg\" alt=\"The Anatomy of a For Loop in JavaScript | by Codecupdev | Dev Genius\" width=\"361\" height=\"203\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why do we use loops? We use loops in JavaScript to perform an action multiple times. Loops allow us to do this without having a crazy amount of unnecessary code. We add a condition to the loop so that way it will run as long as the condition is true. As soon as the condition [&hellip;]<\/p>\n","protected":false},"author":27649,"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-2747","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\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/users\/27649"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/comments?post=2747"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2747\/revisions"}],"predecessor-version":[{"id":2753,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/posts\/2747\/revisions\/2753"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/media?parent=2747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/categories?post=2747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec712summer2022\/wp-json\/wp\/v2\/tags?post=2747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}