ENع
الدرس 03 · Basics

Variables: let and const

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

A variable is a name for a value, like a labelled box in memory. Follow a six-line program that keeps a game score: let makes a box whose value can change, const makes a locked box, and = works out the right side first and then stores the answer on the left. The last line tries to change a const, and JavaScript stops it with a TypeError.

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

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