I’m showing different ways to write Javascript functions and when each comes in handy.
In this video, I'm going over arrow functions. I'll show:
- How to convert a function expression to an arrow function
- How to handle parameters
- How to move from an explicit return to an implicit return
- How arrow functions can return objects
- How arrow functions interact with the THIS keyword
Other videos:
In part one of the three-part section on functions ( • Ways to Write a Function in Javascrip... ), we looked at:
1) function declarations
2) function expressions
In part three of the three-part section on functions ( • Ways to Write a Function in Javascrip... ), we looked at:
1) IIFE
2) callback functions
3) methods