var commission = '' if(commission === '' ) { // 혹은 commission == '' commission = 0 }
혹은
var commission = '' if(!commission) { commission = 0 }