From bfd5dd21485c175d2f7b705a17c900f2e124765f Mon Sep 17 00:00:00 2001 From: Alexandria Brinson <127881479+alexandriabrinson@users.noreply.github.com> Date: Thu, 27 Apr 2023 10:56:20 -0400 Subject: [PATCH 1/4] Updated me_and_node index.js Updated the file to include my information and create a function that would successfully print both desired lines to the console. --- index.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index cd6e45d..09f62d0 100644 --- a/index.js +++ b/index.js @@ -3,14 +3,15 @@ console.log("Hey you! Yeah you! Awesome Developer! You're doing Great Fam! 💪 const meObj = { - name: "Sam", - hometown: "The Boogie-Down - BX 🙅🏾‍♂️", - favoriteColors: ["gold", "navy blue", "forest green", "red"] -} + name: "Alex", + hometown: "the Bronx!", + favoriteColors: ["pink", "lavender", "olive green", "grey"] +}; +function introduceMe(meObj){ + console.log(`Hi, my name is ${meObj.name}, and I'm from ${meObj.hometown}`); -function introduceMe (personObj){ - // print out: "Hi, my name is {your name}, and I'm from {your hometown}" + console.log(`My favorite colors are ${meObj.favoriteColors[0]}, ${meObj.favoriteColors[1]}, ${meObj.favoriteColors[2]}, and ${meObj.favoriteColors[3]}.`); +}; - // print out: "My favorite colors are {your favorite colors}" -} +introduceMe(meObj); From fb646f4a5acb8afcb18f4cce4d062c68e9b7e3da Mon Sep 17 00:00:00 2001 From: Alexandria Brinson <127881479+alexandriabrinson@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:08:06 -0400 Subject: [PATCH 2/4] Update index.js added line breaks --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 09f62d0..51b23cb 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,10 @@ const meObj = { function introduceMe(meObj){ console.log(`Hi, my name is ${meObj.name}, and I'm from ${meObj.hometown}`); - console.log(`My favorite colors are ${meObj.favoriteColors[0]}, ${meObj.favoriteColors[1]}, ${meObj.favoriteColors[2]}, and ${meObj.favoriteColors[3]}.`); + console.log(`My favorite colors are ${meObj.favoriteColors[0]}, + ${meObj.favoriteColors[1]}, + ${meObj.favoriteColors[2]}, and + ${meObj.favoriteColors[3]}.`); }; introduceMe(meObj); From 57c508c8a19d0d6f4977693fcd19470fd25d6a48 Mon Sep 17 00:00:00 2001 From: Alexandria Brinson Date: Thu, 27 Apr 2023 11:14:38 -0400 Subject: [PATCH 3/4] format changed --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index 51b23cb..09f62d0 100644 --- a/index.js +++ b/index.js @@ -11,10 +11,7 @@ const meObj = { function introduceMe(meObj){ console.log(`Hi, my name is ${meObj.name}, and I'm from ${meObj.hometown}`); - console.log(`My favorite colors are ${meObj.favoriteColors[0]}, - ${meObj.favoriteColors[1]}, - ${meObj.favoriteColors[2]}, and - ${meObj.favoriteColors[3]}.`); + console.log(`My favorite colors are ${meObj.favoriteColors[0]}, ${meObj.favoriteColors[1]}, ${meObj.favoriteColors[2]}, and ${meObj.favoriteColors[3]}.`); }; introduceMe(meObj); From 7b0f401f02ed7aeae4216ee827faa4e95ea5e510 Mon Sep 17 00:00:00 2001 From: Alexandria Brinson Date: Thu, 27 Apr 2023 11:16:08 -0400 Subject: [PATCH 4/4] changed formatting for improved line readability --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 09f62d0..51b23cb 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,10 @@ const meObj = { function introduceMe(meObj){ console.log(`Hi, my name is ${meObj.name}, and I'm from ${meObj.hometown}`); - console.log(`My favorite colors are ${meObj.favoriteColors[0]}, ${meObj.favoriteColors[1]}, ${meObj.favoriteColors[2]}, and ${meObj.favoriteColors[3]}.`); + console.log(`My favorite colors are ${meObj.favoriteColors[0]}, + ${meObj.favoriteColors[1]}, + ${meObj.favoriteColors[2]}, and + ${meObj.favoriteColors[3]}.`); }; introduceMe(meObj);