You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've got a `Clock` class. As of now, it prints the time every second.
7
+
لدينا فصل "ساعة". حتى الآن ، يطبع الوقت كل ثانية.
8
8
9
9
10
-
[js src="source.view/clock.js"]
10
+
[js src = "source.view / clock.js"]
11
11
12
-
Create a new class `ExtendedClock`that inherits from `Clock`and adds the parameter `precision` -- the number of `ms`between "ticks". Should be `1000` (1 second) by default.
12
+
أنشئ فئة جديدة `ExtendedClock`ترث من`Clock`وتضيف المعلمة `الدقة` - عدد`ms`بين "القراد". يجب أن يكون "1000" (ثانية واحدة) افتراضيًا.
13
13
14
-
-Your code should be in the file `extended-clock.js`
15
-
-Don't modify the original `clock.js`. Extend it.
14
+
-يجب أن يكون الكود الخاص بك في ملف `ممتد على مدار الساعة. js`
So`Rabbit`doesn't provide access to static methods of `Object` in that case.
68
+
لذا`Rabbit`لا يوفر الوصول إلى الأساليب الثابتة لـ "الكائن" في هذه الحالة.
69
69
70
-
By the way,`Function.prototype`has "generic" function methods, like `call`, `bind`etc. They are ultimately available in both cases, because for the built-in `Object`constructor, `Object.__proto__ === Function.prototype`.
70
+
بالمناسبة ، يحتوي`Function.prototype`على طرق وظيفية" عامة "، مثل`call` و`bind`وما إلى ذلك. وهي متاحة في النهاية في كلتا الحالتين ، لأن مُنشئ `Object`المدمج ،`Object .__ proto__ = == Function.prototype`.
0 commit comments