Skip to content Skip to sidebar Skip to footer

Skipping Arguments In Javascript

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,

Solution 1:

my_func(undefined, b);

Post a Comment for "Skipping Arguments In Javascript"