ENع
الدرس 20 · Async JavaScript

async and await

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

async and await let you write code that waits for a slow answer, such as a reply from a server, as plain step-by-step code, without freezing the page. Follow one async function from its first line to await, watch it step off the engine while the rest of the script runs, and see it come back through the microtask queue when its promise is fulfilled.

11 دقيقة12 خطوات5 أسئلةIntermediate
شكل 20 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.