Skip to content

Instantly share code, notes, and snippets.

@LearningMaterial
Created March 12, 2018 14:04
Show Gist options
  • Save LearningMaterial/74ae7e5486b2220c8a46298cfbbccc2f to your computer and use it in GitHub Desktop.
Save LearningMaterial/74ae7e5486b2220c8a46298cfbbccc2f to your computer and use it in GitHub Desktop.
function addNumber(num1, num2 = 20, num3 = 10) {
return num1 + num2 + num3;
}
console.log(addNumber(10));
console.log(addNumber(10, 40, 30));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment