Please Help JavaScript Function Expressions


#1

My code is not working. I checked the solution, and my code seems pretty similar. I am not sure If I have made a mistake, or if there is a bug that is preventing my code from working?

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

isGreaterThan(4, 8)

Refactor the function declaration to be a function expression using arrow function syntax.

Be sure to call the function at the end.


#2

Quickly review the difference in syntax of declaration versus expression. Remember that expressions are assigned to a variable.