Skip to content

Instantly share code, notes, and snippets.

@Peregg
Last active June 18, 2018 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Peregg/bd3615e60d7aaee0ec77bb056277ecec to your computer and use it in GitHub Desktop.
Save Peregg/bd3615e60d7aaee0ec77bb056277ecec to your computer and use it in GitHub Desktop.
ES6_part_3_solution
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