Skip to content

No rule for “Hoisting” #273

@tomek-he-him

Description

@tomek-he-him

The section “Hoisting” does a good job of explaining the ins and outs of hoisting, but states no rule about that.

For example I consider this a bad practice, because it leads to confusion and possible bugs:

function example() {
  superPower(); // => Flying

  function superPower() {
    console.log('Flying');
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions