题解 | #Getter#

Getter

http://www.nowcoder.com/practice/e7f3a2f429d945e49f5b48ef1065beda

{"css":"","js":"","html":"<!DOCTYPE html>\n<html>\n    <head>\n        <meta charset=utf-8>\n    </head>\n    <body>\n    \t\n        <script type=\"text/javascript\">\n            class Rectangle {\n                // 补全代码\n                 constructor(height, width) {\n        this.height = height\n        this.width = width\n\n      }\n      get area () {\n        return this.width * this.height\n      }\n            }\n        </script>\n    </body>\n</html>","libs":[]}
全部评论

相关推荐

半解316:内容充实,细节需要修改一下。 1,整体压缩为一页。所有内容顶格。 2,项目描述删除,直接写个人工作量 修改完之后还需要建议,可以私聊
点赞 评论 收藏
分享
评论
1
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务