Skip to content

Instantly share code, notes, and snippets.

@shahab570
Last active December 29, 2020 13:46
Show Gist options
  • Save shahab570/9a12d668a384b521ba1b800a8fb9c82b to your computer and use it in GitHub Desktop.
Save shahab570/9a12d668a384b521ba1b800a8fb9c82b to your computer and use it in GitHub Desktop.
function number() {
return 10;
}
function result (x ,y =number()) {
console.log(x+y);
}
result(2); //12
result(10,20) //30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment