I use
var foo = 'bar';
but at my place of work they insist on no semi-colons and comma first. I want to tell them this is stupid but I need solid facts. anyone care to expand.
var foo = 'bar',
baz = 'bletch'
(function (global) {
//module pattern code here ...
})(this);
then you have trouble. Semicolons are not optional (meaning always optional, you can leave them out at will). Please read my blog post. var foo = 'bar'
var baz = 'bletch'
void function (global) {
//module pattern code here ...
})(this)Now is:
module.exports = function(){};