From 73f950e824ee7c8004ebf0f4a43ea0cd9fc573b7 Mon Sep 17 00:00:00 2001 From: alexeyvolhin <82944068+alexeyvolhin@users.noreply.github.com> Date: Wed, 13 Oct 2021 20:32:06 +0500 Subject: [PATCH] 3,4 --- topic-4/task-3/index.js | 6 ++++-- topic-4/task-4/index.js | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) 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() };