Hacker News new | ask | show | jobs
by windwake12 3064 days ago
There's no difference

    let a = function bar() { };
    
    function foo( a ) {
      a = 2;
    }
    
    foo( a );
    
    console.log( a ); // bar