Created
May 28, 2018 20:17
-
-
Save maylisdoucet/1ec62849756072322bacb068a305537c to your computer and use it in GitHub Desktop.
allsports.js
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'] | |
const allsports = [...sportList, ...otherSportList] | |
const display = (city, ...allsports) => { | |
return "C'est à " + city + "que l'on pratique le plus : " + [...allsports] | |
} | |
console.log(display(address.city, ...allsports)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment