Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Rectangle {
- constructor(width, height, color) {
- this.width = Number(width);
- this.height = Number(height);
- this.color = color;
- }
- calcArea() {
- return this.width * this.height;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement