I am looking into function expressions vs function declarations using arrow functions.
I am thinking this is an arrow function expression:
const johan = greeting = () => {
console.log("Hi from arrow function expression");
};
and that this is an arrow function decleration:
ludwig = () => {
console.log("Hi from arrow function declaration");
};
Is that correct? Or maybe there is no such thing as an arrow function declaration? Maybe there is only arrow function expressions?
If so, what is it called when I put a named arrow function expression in another variable?
Happy for any answer! :)