Skip to content

var is worse than that #1675

Description

@erights

https://github.com/airbnb/javascript#hoisting--about starts with

var declarations get hoisted to the top of their scope

and the following text suggests that this is the same notion of scope as the scope that let and const hoist to. Rephrase to something like "top of the block of their enclosing function"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions