Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add valid example that shows vars in a block scope #14230

Merged
merged 2 commits into from Mar 25, 2021

Commits on Mar 18, 2021

  1. Docs: Add valid example that shows vars in a block scope

    All the current valid examples show hoisting the var to the function scope. This example makes is clear that this rule allows you to declare vars inside a block scope, just not use them out of that scope.
    edg2s committed Mar 18, 2021
    Copy the full SHA
    b0833ec View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2021

  1. Copy the full SHA
    4aa4983 View commit details
    Browse the repository at this point in the history