I have been exploring the concept of function expressions versus function declarations with arrow functions.
From my understanding, this is an example of an arrow function expression:
const fred = greeting = () => {
console.log("Hello from arrow function expression");
};
On the other hand, I believe this is an arrow function declaration:
anna = () => {
console.log("Hello from arrow function declaration");
};
Would my assumptions be accurate? Or is there no such thing as an arrow function declaration? Could it be that only arrow function expressions exist?
If that's the case, what do you call it when a named arrow function expression is assigned to another variable?
Excited to hear any insights! :)