{"id":3252,"date":"2023-02-24T19:54:10","date_gmt":"2023-02-25T00:54:10","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3252"},"modified":"2023-03-02T13:54:46","modified_gmt":"2023-03-02T18:54:46","slug":"fruity-loops-6b","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/24\/fruity-loops-6b\/","title":{"rendered":"Fruity Loops 6b"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"n3VNCb pT0Scc KAlRDb\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/f\/fc\/Froot-Loops-Cereal-Bowl.jpg\" alt=\"Froot Loops - Wikipedia\" width=\"321\" height=\"246\" data-noaft=\"1\" \/><\/p>\n<p><span style=\"font-weight: 400;font-size: 14pt\">We use loops \u201csequence of instruction that is repeated until a certain condition is reached.\u201d There are three types of loops you might need during coding. There is \u201cfor loop,\u201d \u201cwhile loop,\u201d and \u201cdo-while loop.\u201d Loops are common to run codes. It repeats until a condition evaluates to false. While loop executes its statement as long as the condition is true. Lastly, a do-while-loop is a statement repeated until the condition is false, meaning it stops execution and is passed to the do-while statement. I believe we use it for loop when we want to code a specific number of times because it&#8217;s always executed by initialization, expression, and increment statements. While loop is when you don\u2019t know the specific number of times it executes as long as the expression is true.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Source:<\/span><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Guide\/Loops_and_iteration#do...while_statement\"><span style=\"font-weight: 400\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Guide\/Loops_and_iteration#do&#8230;while_statement<\/span><\/a><\/p>\n<p><a href=\"https:\/\/builtin.com\/software-engineering-perspectives\/for-loop-vs-while-loop\"><span style=\"font-weight: 400\">https:\/\/builtin.com\/software-engineering-perspectives\/for-loop-vs-while-loop<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We use loops \u201csequence of instruction that is repeated until a certain condition is reached.\u201d There are three types of loops you might need during coding. There is \u201cfor loop,\u201d \u201cwhile loop,\u201d and \u201cdo-while loop.\u201d Loops are common to run codes. It repeats until a condition evaluates to false. While loop executes its statement as [&hellip;]<\/p>\n","protected":false},"author":29271,"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-3252","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\/3252","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\/29271"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3252"}],"version-history":[{"count":2,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3252\/revisions"}],"predecessor-version":[{"id":3874,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3252\/revisions\/3874"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}