Skip to content

Instantly share code, notes, and snippets.

@shahab570
Created December 29, 2020 13:44
Show Gist options
  • Save shahab570/48501ca0c84efaa9a8e9d90c7c42d66e to your computer and use it in GitHub Desktop.
Save shahab570/48501ca0c84efaa9a8e9d90c7c42d66e to your computer and use it in GitHub Desktop.
function identity(name = "John",age = 25) {
console.log(name, " ", age);
}
identity(); //John 25
identity("Harris"); //Harris 25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment