4 ms·
There's no difference let a = function bar() { }; function foo( a ) { a = 2; } foo( a ); console.log( a ); // bar
by windwake12 9y ago
There's no difference
let a = function bar() { };
function foo( a ) {
a = 2;
}
foo( a );
console.log( a ); // bar