题解 | #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":[]}
全部评论

相关推荐

在看数据的傻狍子很忙碌:学生思维好重,而心很急,自己想想真的能直接做有难度的东西吗?任何错误都是需要人担责的,你实习生可以跑路,你的同事领导呢
点赞 评论 收藏
分享
04-13 18:10
门头沟学院 Java
想熬夜的小飞象在秋招:被腾讯挂了后爸妈以为我失联了
点赞 评论 收藏
分享
评论
1
1
分享

创作者周榜

更多
牛客网
牛客企业服务