From 857e6f7766c2053bbe545632c81dd653da4f503d Mon Sep 17 00:00:00 2001 From: Talgat Saribayev Date: Tue, 7 Nov 2023 15:13:36 +0600 Subject: [PATCH] updated exercise5 --- exercise5/problem2/README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 +```