In JavaScript there are many different ways to write a function. There are no right or wrong ways to store a function but some are more modern than others.
In functions_1.js
, rewrite the logPerson()
function declaration, into one of each of the following functions.
- Functions stored in a Variable
- Arrow Functions
- Anonymous Arrow Functions 💅
Note: There are no tests for this task!
👉 What is the difference between all these functions? Can you explain what the differences are?
When you've finished this exercise move on to another file such as Variables 🙌