From d3f022fbf913ec727fe35c1e672629aebe87f230 Mon Sep 17 00:00:00 2001 From: Jacobmpp Date: Thu, 25 Oct 2018 08:57:51 -0500 Subject: [PATCH] added reference to nested blocks (#25659) --- guide/english/javascript/code-blocks/index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/guide/english/javascript/code-blocks/index.md b/guide/english/javascript/code-blocks/index.md index 09b2dde2b3..f64414e0fc 100644 --- a/guide/english/javascript/code-blocks/index.md +++ b/guide/english/javascript/code-blocks/index.md @@ -29,3 +29,11 @@ The **block** statement is commonly used with control flow statements (e.g. `if. sum = num1 + num2; return sum; } + +#### Nested Blocks + + for(var i = 0; i < 10; i++){ + for(var j = 0; j < 10; j++){ + console.log(i + ", " + j); + } + }