let animal = {
eats: true,
};
 
let rabbit = {
jumps: true,
};
 
rabbit.eats; // undefined
// rabbit.__proto__ = animal;
 
rabbit.__proto__ = animal; // setter
// console.log(rabbit.__proto__); // getter
 
 
// RABBIT - ANIMAL - OBJECT - NULL
 
 
const collection = new Set([1, 2]);
 
Click Run to execute JavaScript.
Code runs in an isolated environment.