Write a function in js, without limiting the number of parameters, and return the maximum value of all parameters
欢迎选择我的课程,让我们一起见证您的进步~~
function maxNum(){return Math.max.apply(null,arguments)}
function maxNum(...args){ return Math.max(...args) } maxNum(0,1,2,3,4,5,6,7,8,9); //9
欢迎选择我的课程,让我们一起见证您的进步~~