Skip to content

Commit 1d5ebd6

Browse files
committed
updated functions README
1 parent 7a7fdf3 commit 1d5ebd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ For the examples we will use accelerated time (seconds instead of minutes), othe
125125

126126
We will use the standard `setTimeout()` function to time the various time dependent activities.
127127

128-
We will also use two helper functions, notably `startTimer()` and `stopTimer()`, to show the elapsed time (in seconds) while we are waiting. These helper functions resides in a separate file (`timer.js`), so that they do not clutter up the code we want to focus on. To access them, we must use some syntax from Node (see below). If you are unfamiliar with Node just take it for granted for now that this syntax makes the functions `startTimer()` and `stopTimer()` available for use in our code.
128+
We will also use two helper functions, notably `startTimer()` and `stopTimer()`, to show the elapsed time (in seconds) while we are waiting. These helper functions reside in a separate file (`timer.js`), so that they do not clutter up the code we want to focus on. To access them, we must use some syntax from Node (see below). If you are unfamiliar with Node just take it for granted for now that this syntax makes the functions `startTimer()` and `stopTimer()` available for use in our code.
129129

130130
```js
131131
const { startTimer, stopTimer } = require('./timer');
132132
```
133133

134-
As our tasks take time now, we can no longer use a `return` statement to return the result of a task. We need to rewrite our functions to handle the asynchronous nature of the tasks. In version 2 of the example as described in this section we will use _callback_ functions to achieve this.
134+
As our tasks take time now, we can no longer use a `return` statement to return the result of a task. Instead, we need to rewrite our functions to handle the asynchronous nature of the tasks. In version 2 of the example as described in this section we will use _callback_ functions to achieve this.
135135

136136
| Function | Description |
137137
| -------- | ----------- |

0 commit comments

Comments
 (0)