alexandrecoin
3/19/2018 - 4:18 PM

es6_3.js

const address = {
    city: "Lyon",
    state: "FR",
    zip: 69001
};

const sportList = ['Football', 'BasketBall']
const ortherSportList = ['Boxe', 'Judo']

function display(address, sportList=[''], ortherSportList=[''], ...reste){
  sportList.push(...ortherSportList);
  console.log(`J'habite à ${address.city} et je joue au ${sportList[0]} et au ${sportList[1]}. 
  D'autres sports peuvent aussi être pratiqués : ${reste}.`);
}

display(address, sportList, ortherSportList);