Expert
What's the exit?
const shape = {
radius: 10,
diameter() {
return this.radius * 2;
},
perimeter: () => 2 * Math.PI * this.radius
};
shape.diameter();
shape.perimeter();
Author: Vincent CotroStatus: PublishedQuestion passed 259 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Javascript