From 817989da5ac415fafcc45bd6ccf0c850e2c6940b Mon Sep 17 00:00:00 2001 From: Juraj Kapsz Date: Tue, 14 Jul 2026 22:04:28 +0200 Subject: [PATCH] docs: use const instead of let in code example in part4b This better reflects the intent of the example, follows modern JavaScript conventions, and avoids suggesting the `let` when reassignment of the variable binding is not intended. --- src/content/4/en/part4b.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/4/en/part4b.md b/src/content/4/en/part4b.md index 6da9ce905dc..005ece0ffae 100644 --- a/src/content/4/en/part4b.md +++ b/src/content/4/en/part4b.md @@ -894,8 +894,8 @@ Promise.all executes the promises it receives in parallel. If the promises need beforeEach(async () => { await Note.deleteMany({}) - for (let note of helper.initialNotes) { - let noteObject = new Note(note) + for (const note of helper.initialNotes) { + const noteObject = new Note(note) await noteObject.save() } })