Last active
May 22, 2018 15:15
-
-
Save soner8/8c62765691cb2caa55de2daec5863f55 to your computer and use it in GitHub Desktop.
ES6 Partie 3
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
const address = { | |
city: "Lyon", | |
state: "FR", | |
zip: 69001 | |
}; | |
const sportList = ['Football', 'BasketBall'] | |
const otherSportList = ['Boxe', 'Judo'] | |
sportList.push(...otherSportList) | |
const display = (city = 'Caen', ...sportList) => { | |
console.log(`${city} ${sportList}`) | |
} | |
display(address.city, sportList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment