File tree Expand file tree Collapse file tree
1-js/08-prototypes/01-prototype-inheritance/3-proto-and-this Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ** The answer : ` rabbit ` .**
1+ ** جواب : ` rabbit ` .**
22
3- That's because ` this ` is an object before the dot, so ` rabbit.eat() ` modifies ` rabbit ` .
3+ به این دلیل که ` this ` برابر با شیء قبل از نقطه است پس ` rabbit.eat() ` شیء ` rabbit ` را تغییر میدهد .
44
5- Property lookup and execution are two different things .
5+ جست و جوی ویژگی و اجرا کردن دو موضوع جدا هستند .
66
7- The method ` rabbit.eat ` is first found in the prototype, then executed with ` this=rabbit ` .
7+ متد ` rabbit.eat ` ابتدا در پروتوتایپ پیدا شد سپس با ` this=rabbit ` اجرا شد .
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ importance: 5
22
33---
44
5- # Where does it write?
5+ # کجا مینویسد؟
66
7- We have ` rabbit ` inheriting from ` animal ` .
7+ ما ` rabbit ` را داریم که از ` animal ` ارثبری میکند .
88
9- If we call ` rabbit.eat() ` , which object receives the ` full ` property : ` animal ` or ` rabbit ` ?
9+ اگر ما ` rabbit.eat() ` را فراخوانی کنیم، کدام شیء ویژگی ` full ` را دریافت میکند : ` animal ` یا ` rabbit ` ؟
1010
1111``` js
1212let animal = {
You can’t perform that action at this time.
0 commit comments