diff --git a/docs/rules/block-scoped-var.md b/docs/rules/block-scoped-var.md index 97be55b889c..9341dc5f387 100644 --- a/docs/rules/block-scoped-var.md +++ b/docs/rules/block-scoped-var.md @@ -71,6 +71,13 @@ function doTryCatch() { f = build; } } + +function doFor() { + for (var x = 1; x < 10; x++) { + var y = f(x); + console.log(y); + } +} ``` ## Further Reading