const circle = {
radius: 20,
diameter() {
return this.radius * 2;
},
perimeter: () => 2 * Math.PI * this.radius,
};
circle.perimeter.bind(circle);
console.log(circle.diameter());
console.log(circle.perimeter());
const circle = {
radius: 20,
diameter() {
return this.radius * 2;
},
perimeter: () => 2 * Math.PI * this.radius,
};
circle.perimeter.bind(circle);
console.log(circle.diameter());
console.log(circle.perimeter());
For further actions, you may consider blocking this person and/or reporting abuse
Gabriel Rowan -
PRANTA Dutta -
Mahmud R. Farhan -
Said MOUNAIM -
Top comments (0)