8. Function Expressions


#1

I’m having a problem passing this code and I’m not sure what the problem is. Any ideas?

function isGreaterThan = (numberOne, numberTwo) => {
if(numberOne > numberTwo)
{ return true;
} else {
return false;
}
};

isGreaterThan(4, 8)


#2

This needs to be assigned to something, or logged out. As it is now the return value is going into a vacuum.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.