// Math方法
var abc = (a, b, c) => {
return Math.max(a, b, c);
}
console.log(abc(50, 20, 80));//80
//三元比较
var a = prompt("请输入a的值");
var b = prompt("请输入b的值");
var c = prompt("请输入c的值");
var fun7 = (a, b, c) => {
var num = a > b ? (a > c ? a : c) : (b > c ? b : c);
console.log(num);
}
fun7(a, b, c);