← Back to Examples

Functions

1. Function Declaration vs Expression

Click to see the difference...

2. Calculator Functions


Enter numbers and click an operation...

3. Arrow Functions

Click to see arrow function examples...

4. Default Parameters

Leave name empty to see default parameter...

5. Rest Parameters & Spread

Click to see rest/spread in action...

6. Scope and Closures

Click a button...

7. Higher-Order Functions

Click to see map, filter, reduce...

8. Callback Functions

Click to see callbacks in action...

← Back to Examples