题解 | #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>