Skip to content

Instantly share code, notes, and snippets.

@subtubes-io
Created October 29, 2014 00:42

Revisions

  1. Edgar created this gist Oct 29, 2014.
    8 changes: 8 additions & 0 deletions Function Hoisting
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    var item = 4;
    var sum = itemFunc() + 2;
    item = 3;

    function itemFunc(){return item;}


    console.log(sum);