File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -147,12 +147,12 @@ function() {
147147}
148148```
149149
150- Unlike with a function declaration, there's no function name in front of the
151- ` () ` . Note, however, that if we don't assign a name to the function, we have no
152- way to call it. We lose access to our function immediately after it's created.
153- So how can we invoke an anonymous function? We've seen one way before: we can
154- use it as a callback function. For example, you'll often see anonymous functions
155- passed as an argument to an event listener:
150+ Unlike a function declaration, there's no function name in front of the ` () ` .
151+ Note, however, that if we don't assign a name to the function, we have no way to
152+ call it. We lose access to our function immediately after it's created. So how
153+ can we invoke an anonymous function? We've seen one way before: we can use it as
154+ a callback function. For example, you'll often see anonymous functions passed as
155+ an argument to an event listener:
156156
157157``` js
158158const button = document .getElementById (' button' );
You can’t perform that action at this time.
0 commit comments