Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
Add Comment
Please, Sign In to add comment