From 1bc2e05d76f9b9cf24c539e5bbfcdd3f96139db9 Mon Sep 17 00:00:00 2001 From: Michael Kleemoff Date: Thu, 27 Apr 2023 10:34:51 -0400 Subject: [PATCH 1/2] Initial commit. Customize for me. --- index.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/index.js b/index.js index cd6e45d..1c95f1b 100644 --- a/index.js +++ b/index.js @@ -1,16 +1,14 @@ -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"] -} - - -function introduceMe (personObj){ - // print out: "Hi, my name is {your name}, and I'm from {your hometown}" - - // print out: "My favorite colors are {your favorite colors}" + name: 'Michael', + hometown: 'Brooklyn', + favoriteColors: ['black', 'red'], +}; + +function introduceMe(personObj) { + // print out: "Hi, my name is {your name}, and I'm from {your hometown}" + // print out: "My favorite colors are {your favorite colors}" } From e13850e0d949b87963afc3c81fd27c4d33a6e968 Mon Sep 17 00:00:00 2001 From: Michael Kleemoff Date: Thu, 27 Apr 2023 11:12:42 -0400 Subject: [PATCH 2/2] Complete function --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index 1c95f1b..90f4c95 100644 --- a/index.js +++ b/index.js @@ -10,5 +10,12 @@ const meObj = { 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[0]} and ${meObj.favoriteColors[1]}` + ); } + +console.log(introduceMe(meObj));