Skip to content

Commit

Permalink
updated exercise5
Browse files Browse the repository at this point in the history
  • Loading branch information
talgat-ruby committed Nov 7, 2023
1 parent 24c9731 commit 857e6f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions exercise5/problem2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ Call supplied function with arguments from 1 to 10 with delay of 1 sec. **Use**
[`setInterval`](https://developer.mozilla.org/en-US/docs/Web/API/setInterval)

```ts
function log(n: number) {
console.log(n);
}

printNumberInInterval(log)
printNumberInInterval(10);
// after 1 sec - 1
// after 1 sec - 2
// after 1 sec - 3
// ...
```
```

0 comments on commit 857e6f7

Please sign in to comment.