diff --git a/exercise5/problem2/README.md b/exercise5/problem2/README.md index 4736e5c..a343cd7 100644 --- a/exercise5/problem2/README.md +++ b/exercise5/problem2/README.md @@ -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 // ... -``` \ No newline at end of file +```