From 3658cca00f9e5b632ccf884465f9a83a0ac907f8 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 6 Jan 2025 20:08:45 +0200 Subject: [PATCH] Fix typo in article Fixes #2095 --- content/snippets/js/s/resolve-promise-after-amount-of-time.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/snippets/js/s/resolve-promise-after-amount-of-time.md b/content/snippets/js/s/resolve-promise-after-amount-of-time.md index 1fe212bdec8..d9f0f2192f0 100644 --- a/content/snippets/js/s/resolve-promise-after-amount-of-time.md +++ b/content/snippets/js/s/resolve-promise-after-amount-of-time.md @@ -16,7 +16,7 @@ All you have to do is create a new promise using the `Promise()` constructor, an ```js const resolveAfter = (value, delay) => new Promise(resolve => { - setTimeout(() => resolve(value, delay)); + setTimeout(() => resolve(value), delay); }); resolveAfter('Hello', 1000);