1、解构函数写法
const stats = {
max: 56.78,
standard_deviation: 4.34,
median: 34.54,
mode: 23.87,
min: -0.75,
average: 35.85
};
//第一种写法
const half = ({max, min}) => max +min;
//第二种写法
const half = (arr) => arr.max + arr.min;
console.log(stats);
console.log(half(stats));