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