{"id":44597,"date":"2018-12-07T04:36:00","date_gmt":"2018-12-06T20:36:00","guid":{"rendered":"http:\/\/itteacheritfreelance.hk\/test\/wordpress\/?guid=1095f7e999f9c5cb3fc363ff0743b103"},"modified":"2018-12-07T04:36:00","modified_gmt":"2018-12-06T20:36:00","slug":"how-javascript-promises-work-2","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2018\/12\/07\/how-javascript-promises-work-2\/","title":{"rendered":"How JavaScript promises work"},"content":{"rendered":"<p>Last week we looked at <a href=\"https:\/\/www.infoworld.com\/article\/3322904\/javascript\/asynchronous-javascript-callbacks-and-promises-explained.html\">callbacks and promises<\/a>. I made a case for using promises to easily coordinate asynchronous code. This week, we\u2019ll dig further into understanding promises and look at the syntax.<\/p>\n<p class=\"jumpTag\"><a href=\"https:\/\/www.javaworld.com\/article\/3326817\/scripting-jvm-languages\/how-javascript-promises-work.html#jump\">To read this article in full, please click here<\/a><\/p>\n<\/section>\n<\/article>\n<p>(Insider Story)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week we looked at <a href=\"https:\/\/www.infoworld.com\/article\/3322904\/javascript\/asynchronous-javascript-callbacks-and-promises-explained.html\">callbacks and promises<\/a>. I made a case for using promises to easily coordinate asynchronous code. This week, we&rsquo;ll dig further into understanding promises and look at the syntax.<\/p>\n<p><a href=\"https:\/\/www.javaworld.com\/article\/3326817\/scripting-jvm-languages\/how-javascript-promises-work.html#jump\">To read this article in full, please click here<\/a><\/p>\n<p>(Insider Story) <a href=\"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2018\/12\/07\/how-javascript-promises-work-2\/\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":140,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"slim_seo":[],"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2,7],"tags":[398,402,397,414,413,410,409,407,408,406,399,400,394,318,558,560,555,561,566,553,554,586,585,563,562,567,524,232,10,401,396,381,403,412,411,395,405,404,457,454,320,319,316],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7prtj-bBj","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/44597"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/users\/140"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/comments?post=44597"}],"version-history":[{"count":0,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/44597\/revisions"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/media?parent=44597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/categories?post=44597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/tags?post=44597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}