You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A **function** is a special kind of language construct: often specified as an arrow or lambda expression - an anonymous or named block of code (the body) with optional parameters. It allows us to treat a piece of code as data and e.g. pass it to methods:
915
915
916
916
```js
917
-
button.onClick(e=>console.log("the button has been clicked"))// valid function, but with a side effect (see below)
917
+
button.onClick(e=>console.log("the button has been clicked"))
0 commit comments