Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
var numberScriptLoaded;
(function () {
    var privateNumberScriptLoaded;
  
    if (!numberScriptLoaded) {
        numberScriptLoaded = 1; // 1, not 0
    }
    else {
        ++numberScriptLoaded;
    }
    // Note that all `window` properties are globals,
    // so here, it works even without the prefix
    privateNumberScriptLoaded = numberScriptLoaded;
  console.log("Option 2: privateNumberScriptLoaded = " +
    privateNumberScriptLoaded);
})();
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers