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
Prince -
Neha Sharma -
This Dot Media -
Henrique Emanoel Viana -
Top comments (0)