Is there any difference in these two?
EDIT (added return):
const square = function (a) {
result = a ** 2
return result}
function square(a) { a ** 2
result = a ** 2
return result}
It looks different and in the first example I have an anonymous function on the right side.
But after they are implemented I can both call them with e.g. console.log(square(5)), right?
What's the difference?