Skip to content

var is worse than that #1675

@erights

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"

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