hoisted function vs function

Edit on GitHub

Setup

Tests

  • hoisted function

    fn();
    function fn() {}
  • function

    function fn() {}
    fn();