30 Days Of JavaScript

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:

  1. Default arguments
  2. Arrow functions
  3. Functions as inputs
  4. Anonymous functions

Outline

Go Pro?

If you upgraded to pro, sign in here

  • About
  • Blog
  • Privacy
Looking to email me? You can get me on my first name at allthecode.co