Skip to content

Commit 40b50bf

Browse files
committed
text tweaks
1 parent fda8472 commit 40b50bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Week4/Closures (class 10).md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ With `greetTimir('Good morning')` we are effectively calling the inner function,
2929
Good morning, Timir
3030
```
3131

32-
Alternatively, we could have obtained the same result by scrapping all lines except the last two and replace them with the code below. We wouldn't be able to tell the difference from just looking at the output produced.
32+
Alternatively, we could have obtained the same result by scrapping all lines except the last two and replace them with an equivalent `greetTimir` function as shown below. We wouldn't be able to tell the difference from just looking at the output produced.
3333

3434
```js
3535
function greetTimir(greeting) {
@@ -41,7 +41,7 @@ const timirGreeting = greetTimir('Good morning');
4141
console.log(timirGreeting);
4242
```
4343

44-
However, with that alternative `greetTimir` function we can only greet Timir. In contrast, with `greetPerson` we can easily produce functions to greet any person we like (or don't like :wink:), e.g.:
44+
However, with that alternative `greetTimir` we can only greet Timir. In contrast, with `greetPerson` we can easily produce functions to greet any person we like (or don't like :wink:), e.g.:
4545

4646
```js
4747
const greetMaartje = greetPerson('Maartje');

0 commit comments

Comments
 (0)