From 561283d9fad0ca34ed48a4da0978f1a6f278b428 Mon Sep 17 00:00:00 2001 From: Pedro Hercules Date: Thu, 12 Nov 2026 20:27:52 -0300 Subject: [PATCH] docs: remove unused argument from getSong example The asynchronous flow control example calls `getSong('beer')`, even though the function does not accept any parameters. This unused argument may confuse readers into thinking it contributes to the error being demonstrated. Removing it keeps the example focused on the actual issue: `getSong()` returns before the asynchronous `setTimeout` callbacks execute. This change improves clarity without affecting the example's behavior. Signed-off-by: Pedro Hercules --- pages/asynchronous-work/asynchronous-flow-control.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/asynchronous-work/asynchronous-flow-control.md b/pages/asynchronous-work/asynchronous-flow-control.md index 6a72777..f61c70c 100644 --- a/pages/asynchronous-work/asynchronous-flow-control.md +++ b/pages/asynchronous-work/asynchronous-flow-control.md @@ -136,7 +136,7 @@ function singSong(_song) { console.log(_song); } -const song = getSong('beer'); +const song = getSong(); // this will not work singSong(song); // Uncaught Error: song is '' empty, FEED ME A SONG!