Skip to content

Instantly share code, notes, and snippets.

@showlovezz
Created February 15, 2020 16:40
Show Gist options
  • Save showlovezz/665fafd2267612932711ce2e18d1e853 to your computer and use it in GitHub Desktop.
Save showlovezz/665fafd2267612932711ce2e18d1e853 to your computer and use it in GitHub Desktop.
鼠年全馬鐵人挑戰 - 2-3
const mathDouble = (a) => { // 箭頭函式表達式寫法
return a * 2;
}
console.log(mathDouble (10)) // 呼叫函式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment