ENع
الدرس 07 · Basics

Functions

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

A function is a named list of steps you write once and run whenever you call it. Follow a seven-line script that prices two orders with one function, total(price, count): each call hands in arguments, gets its own call frame of local variables, and return sends one value back to the line that called. console.log then prints 22.

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

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