Answers

Question and Answer:

  Home  UI Developer

⟩ Create a new javascript object with the keys of "fname" equal to your first name, "lname" equal to your last name, and "fcolors" equal to and array of 3 of your favorite colors. assign this object to a variable called "me" and log it to the console?

var me = {"fname": "Global", "lname": "Guideline", "fcolors": ["blue", "green", "whitesmoke"]};

console.log(me);

// or

var me = {};

me.fname = "Global";

me.lname = "Guideline";

me.fcolors = ["blue", "green", "whitesmoke"];

console.log(me);

 197 views

More Questions for you: