diff --git a/files/en-us/web/javascript/reference/iteration_protocols/index.md b/files/en-us/web/javascript/reference/iteration_protocols/index.md index 0eb9fb29805efc9..f9c43484bc9b26c 100644 --- a/files/en-us/web/javascript/reference/iteration_protocols/index.md +++ b/files/en-us/web/javascript/reference/iteration_protocols/index.md @@ -225,6 +225,7 @@ const [b, c, d] = obj; // Returning 3 // Already reached the end (the last call returned `done: true`), // so `return` is not called +console.log([b, c, d]); // [1, 2, undefined]; the value associated with `done: true` is not reachable for (const b of obj) { break;