Skip to content

Commit 6523325

Browse files
authored
Merge pull request learn-co-curriculum#17 from learn-co-curriculum/lizbur10_patch_1
small correction
2 parents 9983ca5 + 5b35bef commit 6523325

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
158158
const button = document.getElementById('button');

0 commit comments

Comments
 (0)