-
-
Save shahab570/c484d8ac9077cc7ca36ac90af8cf4f3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function information({ | |
name = "Mickel", | |
age = 50, | |
country = "USA", | |
state = "New York", | |
}) { | |
console.log(name, age, country, state); | |
} | |
var person = { | |
name: undefined, | |
age: undefined, | |
country: "USA", | |
state: "New York", | |
}; | |
information(person); //John Doe 30 USA New York |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment