Thursday, June 20, 2013

JavaScript function default parameter values


  
function f(a, b, c) {
    c = c || 'default value';
}
  

No comments:

Post a Comment