{"id":18460,"date":"2021-06-03T15:34:46","date_gmt":"2021-06-03T15:34:46","guid":{"rendered":"https:\/\/www.wjst.de\/blog\/?p=18460"},"modified":"2021-10-01T07:54:19","modified_gmt":"2021-10-01T07:54:19","slug":"finally-i-understand-js-a-bit","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2021\/06\/finally-i-understand-js-a-bit\/","title":{"rendered":"Finally I understand JS (a bit)"},"content":{"rendered":"<p>It produced a lot of headaches. And yes, <a href=\"https:\/\/itnext.io\/promises-the-definitive-guide-6a49e0dbf3b7\">it has been described already<\/a> that<\/p>\n<blockquote><p>as a lot of articles I read about async in JavaScript, especially those that came out around the time ES2015 (ES6) was new, are just plain wrong. I\u2019m going to clear up the falsehood by presenting a real understanding of the way async works in JavaScript.<\/p><\/blockquote>\n<p>Some nice examples are at <a href=\"https:\/\/medium.com\/@mandeepkaur1\/the-ultimate-guide-to-javascript-promises-ee4f1274e5c6\">medium.com<\/a> and <a href=\"https:\/\/www.freecodecamp.org\/news\/async-await-javascript-tutorial\">freecodecamp<\/a> as well as a vid at youtube<br \/>\n.<br \/>\n<iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/8aGhZQkoFbQ\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>At the end &#8211; I have some working code here, that shouldn&#8217;t work according to my understanding of concurrency.<\/p>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 06.04.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>It produced a lot of headaches. And yes, it has been described already that as a lot of articles I read about async in JavaScript, especially those that came out around the time ES2015 (ES6) was new, are just plain wrong. I\u2019m going to clear up the falsehood by presenting a real understanding of the &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2021\/06\/finally-i-understand-js-a-bit\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Finally I understand JS (a bit)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-18460","post","type-post","status-publish","format-standard","hentry","category-computer-software"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/18460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=18460"}],"version-history":[{"count":5,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/18460\/revisions"}],"predecessor-version":[{"id":18640,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/18460\/revisions\/18640"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=18460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=18460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=18460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}