Skip to content

Incorrect Tutorial Information  #77

@Vedaz

Description

@Vedaz

In https://javascript.info/function-expressions-arrows#function-declaration-in-a-block
Function declared inside if's body block can execute outside without any problems. Only functions declared inside as variables are not visible outside.
Tested on

  • Firefox 54.0.1 x64
  • Chrome Version 59.0.3071.115 (Official Build) (64-bit)

Other(clearer) test example https://gist.github.com/Vedaz/335fdf79bfbd39ff86922f96152f8e5f

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