

















One element of JavaScript that people struggle with the most is asynchronous JavaScript. Y’know, “Why is my fetch returning this in the console?” for example.
function myPromise() {
const req = fetch('/');
console.log(req);
}Oh yeh, the async and await were missing!
async function myPromise() {
const req = await fetch('/');
console.log(req);
}Mat gets really deep into how all this stuff works. You’re not just learning how promises work, for example. You’re learning all the deep parts that make them work like the do.
These free lessons — including this one and this one — will give you a real flavour of how damn good he is at teaching JavaScript too.
Check it out Advert
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。