{"id":1635,"date":"2018-08-20T23:22:31","date_gmt":"2018-08-21T05:22:31","guid":{"rendered":"https:\/\/bateru.com\/news\/?p=1635"},"modified":"2018-08-21T00:20:20","modified_gmt":"2018-08-21T06:20:20","slug":"dev-video-javascript-for-loops-are-complicated-http203","status":"publish","type":"post","link":"https:\/\/bateru.com\/news\/2018\/08\/dev-video-javascript-for-loops-are-complicated-http203\/","title":{"rendered":"Dev Video: Javascript for-loops are complicated &#8211;  HTTP203"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/Nzokr6Boeaw\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen><\/iframe><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=Nzokr6Boeaw\">JavaScript for-loops are\u2026 complicated &#8211; HTTP203<\/a><\/p>\n<hr>\n<p>> Looping sure is complicated in JavaScript. There are 4 different types of loops that have the word `for` in them.<br \/>\nThe gist below show you a basic <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Guide\/Loops_and_iteration\">for, for-in, for-of, and for-each loop<\/a> in Javascript. <\/p>\n<p><script src=\"https:\/\/gist.github.com\/LarryBattle\/c181c1d9dacca025a11d1bde8c882824.js\"><\/script><\/p>\n<p>Confused yet?<br \/>\nWell in Google Go, they solved this problem by only having 1 type of loop. And it&#8217;s a <a href=\"https:\/\/tour.golang.org\/flowcontrol\/1\">for loop<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript for-loops are\u2026 complicated &#8211; HTTP203 > Looping sure is complicated in JavaScript. There are 4 different types of loops that have the word `for` in them. The gist below show you a basic for, for-in, for-of, and for-each loop in Javascript. Confused yet? Well in Google Go, they solved this problem by only having &hellip; <a href=\"https:\/\/bateru.com\/news\/2018\/08\/dev-video-javascript-for-loops-are-complicated-http203\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Dev Video: Javascript for-loops are complicated &#8211;  HTTP203<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,67],"tags":[294,295,164],"class_list":["post-1635","post","type-post","status-publish","format-standard","hentry","category-frontend-tech","category-videos","tag-for-loops","tag-http203","tag-javascript"],"_links":{"self":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/comments?post=1635"}],"version-history":[{"count":4,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1635\/revisions"}],"predecessor-version":[{"id":1637,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/1635\/revisions\/1637"}],"wp:attachment":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/media?parent=1635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/categories?post=1635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/tags?post=1635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}