From 81e8e3d8cf1bd39b42586dc0ff15c72469d235e8 Mon Sep 17 00:00:00 2001
From: Milan <milantg14@gmail.com>
Date: Mon, 21 Oct 2024 08:51:44 +0545
Subject: [PATCH 1/2] "Updated planVacation function to return a string with
 destinations joined by commas and added a call to the function with sample
 destinations."

---
 1-ecmascript/05-pack-your-bags/pack-your-bags.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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 7ffccb8..6a47c71 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,8 @@
 // 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

From 5d657558bbb4d030be85538a722e32c72064e5a9 Mon Sep 17 00:00:00 2001
From: Milan <milantg14@gmail.com>
Date: Mon, 21 Oct 2024 08:52:46 +0545
Subject: [PATCH 2/2] forget to add semicolon

---
 1-ecmascript/05-pack-your-bags/pack-your-bags.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 6a47c71..7afb025 100644
--- a/1-ecmascript/05-pack-your-bags/pack-your-bags.js
+++ b/1-ecmascript/05-pack-your-bags/pack-your-bags.js
@@ -5,5 +5,5 @@ const planVacation = (destinationOne, destinationTwo, ...moreDestinations) => {
   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
+let place = planVacation("Nepal", "Newyork", "Thailand", "China");
+console.log(`Your planned vacation destinations are ${place}`);
\ No newline at end of file