我尝试在箭头函数中使用 if-else 语句,它运行良好。我想知道代码是否正确。
const fu= (x,y,z) => { if(x>y){ if(x>z)return x; else return z; } else return y; } console.log(fu(10,14,9));