ENع
الدرس 06 · Basics

Loops

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

A loop runs the same lines again and again. Follow a five-line for loop that adds 1, 2 and 3: the start runs once, the check i <= 3 runs before every round, the body adds i to total, i++ runs after every round, and when the check turns false the loop ends and console.log prints 6.

9 دقيقة10 خطوات5 أسئلةBeginner
شكل 6 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

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