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
Md. Razaul Haque -
Fahad Bin Faiz -
M Sea Bass -
Samuel Rouse -
Top comments (0)