SOURCE

console 命令行工具 X clear

                    
>
console
function findMax(){
    var max = -Infinity;
    for(let arg of arguments){
      if(arg>=max)
        max=arg;
      }
    }
   console.log(max);
   return max;
}

findMax(1,5,78);
<!--通过函数内置对象arguments 查找最大值-->