TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JavaScript Illustrated: Promises

36 pointsby eibrahimover 5 years ago

2 comments

thymanl23over 5 years ago
Check out &quot;The Problem with Promises in JavaScript&quot; [0] for some gotchas with the design of js promises.<p>[0] <a href="https:&#x2F;&#x2F;dev.to&#x2F;craigmichaelmartin&#x2F;the-problem-with-promises-in-javascript-5h46" rel="nofollow">https:&#x2F;&#x2F;dev.to&#x2F;craigmichaelmartin&#x2F;the-problem-with-promises-...</a>
评论 #21224421 未加载
nailerover 5 years ago
Odd for an article written in Oct 8 2019, there&#x27;s no mention of ES2017&#x27;s `await`.<p>`.then()` was fine back in the day, but there&#x27;s not a good reason to write new code using it in 2019.
评论 #21224298 未加载
评论 #21227588 未加载