Skip to content

Commit fc2ba21

Browse files
committed
minor fixes
1 parent df6f6be commit fc2ba21

File tree

1 file changed

+2
-2
lines changed
  • 1-js/06-advanced-functions/09-call-apply-decorators/03-debounce

1 file changed

+2
-2
lines changed

1-js/06-advanced-functions/09-call-apply-decorators/03-debounce/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ setTimeout( () => f("c"), 500);
2626
```
2727

2828

29-
Now a practical example. Let's say, the user types something, and we'd like to send a request to the server once they're finished.
29+
Now a practical example. Let's say, the user types something, and we'd like to send a request to the server when the input is finished.
3030

31-
There's no point in sending the request for every character typed. Instead we'd like to wait, and then process the whole result. The `debounce` decorator makes this easy.
31+
There's no point in sending the request for every character typed. Instead we'd like to wait, and then process the whole result.
3232

3333
In a web-browser, we can setup an event handler -- a function that's called on every change of an input field. Normally, an event handler is called very often, for every typed key. But if we `debounce` it by 1000ms, then it will be only called once, after 1000ms after the last input.
3434

0 commit comments

Comments
 (0)