Skip to content Skip to sidebar Skip to footer
Showing posts with the label Initialization

Constructing Object With New Function(){} Vs. Invoking Function With (function(){})() - Performance?

`new function()` with lower case 'f' in JavaScript My intuition says using the new keyword … Read more Constructing Object With New Function(){} Vs. Invoking Function With (function(){})() - Performance?

When Does Javascript Initialize Vars?

var x = ['aaa', 'bbb', 'ccc', ...]; function f() { var y = ['aaa'… Read more When Does Javascript Initialize Vars?