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
sister maria Monahan -
Nikola Perišić -
Vault Developer -
Probir Sarkar -
Top comments (0)