Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions topic-4/task-3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ let hamster = {

function getSpeedy() {
let speedy = {
__proto__: hamster
__proto__: hamster,
stomach: []
};

return speedy;
}

function getLazy() {
let lazy = {
__proto__: hamster
__proto__: hamster,
stomach: []
};

return lazy;
Expand Down
3 changes: 3 additions & 0 deletions topic-4/task-4/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function getHead() {
function getTable() {
let table = {
pen: 3,
__proto__: getHead()
};

return table;
Expand All @@ -24,6 +25,7 @@ function getBed() {
let bed = {
sheet: 1,
pillow: 2,
__proto__: getTable ()
};

return bed;
Expand All @@ -32,6 +34,7 @@ function getBed() {
function getPockets() {
let pockets = {
money: 2000,
__proto__: getBed()
};


Expand Down