Skip to content

Commit 0949b99

Browse files
committed
text tweaks
1 parent 39453c1 commit 0949b99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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 an equivalent `greetTimir` function as shown below. We wouldn't be able to tell the difference from just looking at the output produced.
32+
We could have obtained the same result by scrapping all lines except the last two and replace them with an equivalent, custom made `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` 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 custom made `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)