Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 605 Bytes

File metadata and controls

17 lines (10 loc) · 605 Bytes

Functions

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.

Task 1:

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 🙌