Object literal由於箭頭函式語法簡短,所以使用它來定義方法是很有吸引力的,讓咱們來試一試:const calculate = {array: [1, 2, 3],sum: () => {console...