shuofeng

Results 1 comments of shuofeng

Maybe I prefer to use this way. class shape { radius = 10; perimeter = () => 2 * Math.PI * this.radius; } const newShape = new shape; console.log(newShape.perimeter());