Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rectangle(width, height, color) {
- return {
- width,
- height,
- color: color[0].toUpperCase() + color.slice(1),
- calcArea() {
- return width * height;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement