Last active
June 18, 2018 13:47
-
-
Save Peregg/bd3615e60d7aaee0ec77bb056277ecec to your computer and use it in GitHub Desktop.
ES6_part_3_solution
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 {city} = address; | |
function display(a=city, ...b) { | |
console.log(`${a} is where I can play ${b}`); | |
}; | |
display (city, sportList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment