diff --git a/1-ecmascript/05-pack-your-bags/pack-your-bags.js b/1-ecmascript/05-pack-your-bags/pack-your-bags.js index d64dde6..81d3a9b 100644 --- a/1-ecmascript/05-pack-your-bags/pack-your-bags.js +++ b/1-ecmascript/05-pack-your-bags/pack-your-bags.js @@ -2,5 +2,11 @@ // Codédex const planVacation = (destinationOne, destinationTwo, ...moreDestinations) => { - return [destinationOne, destinationTwo, ...moreDestinations]; -}; \ No newline at end of file + + return [destinationOne, destinationTwo, ...moreDestinations].join(', '); + +} + +let place = planVacation('Nepal', 'Newyork', 'Thailand', 'China'); + +console.log(`Your planned vacation destinations are ${place}`); \ No newline at end of file