{"id":4259,"date":"2023-03-02T21:20:22","date_gmt":"2023-03-03T02:20:22","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=4259"},"modified":"2023-03-02T21:20:22","modified_gmt":"2023-03-03T02:20:22","slug":"weekly-discussion-blogs-6b","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/weekly-discussion-blogs-6b\/","title":{"rendered":"Weekly discussion blogs 6B"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Loops in JavaScript are used to repeatedly input data without actually manually writing it or using a copy and paste method. In coding, we may need to use the same lines of data tenth or hundredth of times. While writing code by hand is possible and even copying it is doable, I think what this chapter in our book trains us for is the future. When we get more comfortable coding, we probably will use huge lines of same codes and loops will help us and make everything easier.\u00a0 During such cases, loops are our best friends. According to our textbook, there are three types of loops in JavaScript: for loops, while loops, and do\u2026while loops. A for loop is more common, and it runs your code until it returns false as you coded. While loop runs code until another expression returns false. As for the do\u2026while loops, it is guaranteed to run at least once before you get false return. The difference between while loop and do\u2026while loop is that while loop never executes if it has a false return.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Loops in JavaScript are used to repeatedly input data without actually manually writing it or using a copy and paste method. In coding, we may need to use the same lines of data tenth or hundredth of times. While writing code by hand is possible and even copying it is doable, I think what this [&hellip;]<\/p>\n","protected":false},"author":29453,"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-4259","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\/4259","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\/29453"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=4259"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4259\/revisions"}],"predecessor-version":[{"id":4260,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/4259\/revisions\/4260"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=4259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=4259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=4259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}