function foo(msg, msg2) {
console.log( msg || 'foo' + msg2 || 'bar');
}
function semi() {
debugger;
foo(); foo(); foo();
}
function comma() {
debugger;
foo(), foo(), foo();
}
function comma2() {
debugger;
foo(),foo(),foo();
}
function mixed() {
debugger;
var bar1 = 'bar1', bar2 = 'b2';
foo();foo(bar1),foo(bar1,bar2);
foo(bar2);foo(bar1),foo();
foo(),foo(bar1),foo();
foo(),foo(bar1),foo(bar1,bar2);
var cha = [foo(),foo(bar1)];
console.log(cha);
var cha2 = [foo,foo];
cha2[0](),cha2[1]('test'),cha2[0](bar1);
}