ENع
الدرس 14 · How JavaScript really works

How this works

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

Inside a normal function, this is not fixed where the function is written: it is set every time the function is called, by the way it is called. Follow one function, hi, shared by two objects and called five ways: as cat.hi() and dog.hi(), with call, through bind, and as a plain f() that ends in a TypeError.

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

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