1

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?!

So why can i use a variable as a function?

BitFlippa
  • 51
  • 5

0 Answers0