tags:

views:

50

answers:

1
function my_func(a, b){
    if(typeof(a) !== 'undefined'){
        // do stuff
    }

    return b;
}

How can I call this function will only the second argument? In other words, I want a to be undefined.

+2  A: 
my_func(undefined, b);
KennyTM