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); + } + }