SOURCE

const max = (arr) => Math.max(...arr);
let a = max([12, 1, 90]);
console.log(a);
//求和
const sum = (arr) => arr.reduce((a, b) => (a + b), 0);
console.info('sum', sum([1, 2, 3, 4]));
console 命令行工具 X clear

                    
>
console