From 9f7a86471c4b5355fd5df54082ad6a3c23ddc1d3 Mon Sep 17 00:00:00 2001 From: xavierrice Date: Thu, 27 Apr 2023 10:56:43 -0400 Subject: [PATCH 1/2] changed obj to reflect Xavier and add console to the function --- index.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index cd6e45d..1e2be64 100644 --- a/index.js +++ b/index.js @@ -1,16 +1,18 @@ -console.log("Hey you! Yeah you! Awesome Developer! You're doing Great Fam! 💪🧑‍💻🙌") +//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: "Xavier", + hometown: "Roeland Park, Kansas - KC 👠", + favoriteColors: ["Purple", "Gold", "forest green", "hot pink"] } function introduceMe (personObj){ - // print out: "Hi, my name is {your name}, and I'm from {your hometown}" + console.log(`Hi, my name is ${meObj.name}, and I'm from ${meObj.hometown}`) - // print out: "My favorite colors are {your favorite colors}" + console.log(`My favorite colors are ${meObj.favoriteColors}`) } + +console.log(introduceMe(meObj)) \ No newline at end of file From ee69eac7a6b5540cafbf8676b10602c0de92e6e7 Mon Sep 17 00:00:00 2001 From: xavierrice Date: Thu, 27 Apr 2023 11:09:42 -0400 Subject: [PATCH 2/2] adjusted my peramters --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 1e2be64..cdc071b 100644 --- a/index.js +++ b/index.js @@ -5,14 +5,14 @@ const meObj = { name: "Xavier", hometown: "Roeland Park, Kansas - KC 👠", - favoriteColors: ["Purple", "Gold", "forest green", "hot pink"] + favoriteColors: ["Purple", " Gold", " forest green", " hot pink"] } function introduceMe (personObj){ - console.log(`Hi, my name is ${meObj.name}, and I'm from ${meObj.hometown}`) + console.log(`Hi, my name is ${personObj.name}, and I'm from ${personObj.hometown}`) - console.log(`My favorite colors are ${meObj.favoriteColors}`) + console.log(`My favorite colors are ${personObj.favoriteColors}`) } console.log(introduceMe(meObj)) \ No newline at end of file