diff --git a/topic-4/task-3/index.js b/topic-4/task-3/index.js index 7321e0f..d1f4423 100644 --- a/topic-4/task-3/index.js +++ b/topic-4/task-3/index.js @@ -13,7 +13,8 @@ let hamster = { function getSpeedy() { let speedy = { - __proto__: hamster + __proto__: hamster, + stomach: [] }; return speedy; @@ -21,7 +22,8 @@ function getSpeedy() { function getLazy() { let lazy = { - __proto__: hamster + __proto__: hamster, + stomach: [] }; return lazy; diff --git a/topic-4/task-4/index.js b/topic-4/task-4/index.js index b4c8d3a..c184262 100644 --- a/topic-4/task-4/index.js +++ b/topic-4/task-4/index.js @@ -15,6 +15,7 @@ function getHead() { function getTable() { let table = { pen: 3, + __proto__: getHead() }; return table; @@ -24,6 +25,7 @@ function getBed() { let bed = { sheet: 1, pillow: 2, + __proto__: getTable () }; return bed; @@ -32,6 +34,7 @@ function getBed() { function getPockets() { let pockets = { money: 2000, + __proto__: getBed() };