Implement and export as default the
Circle class. A circle has only one property, a radius. Implement the
getCircumference() methods, which calculate and return the area and circumference.
const circle = new Circle(3); circle.getArea(); // 28.274...
- Circle area: πr2
- Circumference: 2*πR
For full access to the challenge you need a professional subscription.
A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.