04. Array and Function
04. Array and Function
● Function Declaration
● Function Expression
Function Declaration
parameter types
Function declaration consists of the function s
keyword, followed by:
In JavaScript, function
parameters default to
undefined. However, it's often
useful to set a different default
value. This is where default
parameters can help.
● Currying is a transformation of
functions that translates a function from
callable as f(a, b, c) into callable as
f(a)(b)(c).
● Currying doesn’t call a function. It
just transforms it.
Recursive
Other references
Arrow Function
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
01
02 03
04 05 06
07 08 09 10