Hãy cho biết kết quả đoạn code sau?
Hãy cho biết kết quả đoạn code sau?
const shape = {
radius: 10,
diameter() {
return this.radius * 2;
},
perimeter: () => 2 * Math.PI * this.radius,
};
shape.diameter();
shape.perimeter();
20 and 62.8318530717958620 and NaN20 and 63NaN and 63Chú ý rằng giá trị diameter là một hàm thông thường, cò...
middle