题解 | #Getter#

Getter

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

<!DOCTYPE html>
<html>
    <head>
        <meta charset=utf-8>
    </head>
    <body>
    	
        <script type="text/javascript">
            class Rectangle {
                // 补全代码
                constructor(height,width){
                    this.height = height;
                    this.width = width;
                    this.area = height * width;
                }
                
            }
        </script>
    </body>
</html>

全部评论
get呢??????
点赞 回复 分享
发布于 2022-04-14 17:12

相关推荐

07-24 16:39
已编辑
门头沟学院 测试开发
点赞 评论 收藏
分享
苍蓝星上艾露:这简历。。。可以试试我写的开源简历优化工具https://github.com/weicanie/prisma-ai
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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