Day 6: Functions Part 2
Lesson 0: Intro
Phew! Part 1 of functions is done and out of the way, hopefully you have a good idea of what they are at a basic level.
Functions are a way to wrap up code to make them portable and reusable.
The trick with functions is in how you use them and the flexibility they provide. Today we will start to explore that, we will look at some different syntax for functions and how you can even pass them around like you do with variables and constants.
So, today's break down is as follows:
- Default arguments
- Arrow functions
- Functions as inputs
- Anonymous functions