Javieratapiab
8/20/2017 - 12:57 PM

Functions with no argument

Functions with no argument

function LoadProfiles(userNames = []) {
  let namesLength = userNames.length; // si no hay argumento, el length es 0.
  console.log(namesLength);
}  


// Uses empty array as default value when no argument is passed.