const result = (numberOne, numberTwo) =>
{
if(numberOne > numberTwo){
return true;
} else {
return false;
}
};
console.log(result(1, 2)); // here i use the variable as a function?!
那么为什么我可以将变量用作函数呢?
const result = (numberOne, numberTwo) =>
{
if(numberOne > numberTwo){
return true;
} else {
return false;
}
};
console.log(result(1, 2)); // here i use the variable as a function?!
那么为什么我可以将变量用作函数呢?