# Arrow Functions

# Fat Arrow Functions

在 ES6 中 箭頭函數(Arrow Function) 也是一項重大變革,在這一單元中將會介紹什麼時候該使用他。首先,先來看一下函數定義方式的差別:

// Original Function
const add = function(a, b) {
  return a + b;
}

// Arrow Function
const add = (a, b) => {
  return a + b;
}

# Advanced Use of Arrow Functions

# When to Use Arrow Functions

# [Exercise] Refactoring Keyword Functions

# [Exercise] Arrow Functions Aren't Always a Solution

Last Updated: 12/15/2020, 10:27:30 PM