From d929b3c5d4da37ee48c33c9bc0a191aa008719d0 Mon Sep 17 00:00:00 2001 From: keniaDE Date: Thu, 27 Apr 2023 11:02:00 -0400 Subject: [PATCH] Introduce me Function --- index.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index cd6e45d..08f99d5 100644 --- a/index.js +++ b/index.js @@ -3,14 +3,18 @@ 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: "Kenia", + hometown: "New York City", + favoriteColors: ["gold", "yellow", ] } - function introduceMe (personObj){ - // print out: "Hi, my name is {your name}, and I'm from {your hometown}" + let name = personObj.name + let home = personObj.hometown + let colors = personObj.favoriteColors + + console.log(`Hi, my name is ${name}, and I'm from ${home}`) - // print out: "My favorite colors are {your favorite colors}" +console.log(`My favorite colors are ${colors}`) } +introduceMe(meObj) \ No newline at end of file