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.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More JavaScript Interview Questions

What does window.print() do in Javascript?

0 Answers  


Why is it called javascript?

0 Answers  


Write JavaScript code to use file system in binary format?

0 Answers  


What is createtextnode?

0 Answers  


how to post the form without submit button with help of javascript

2 Answers  






discuss scoping in javascript?

0 Answers  


Explain unescape() and escape() in javascript?

0 Answers  


How to empty an array in JavaScript?

0 Answers  


How can javascript be used to improve the "look and feel" of a web site? By the same token, how can javascript be used to improve the user interface?

0 Answers  


What is class example?

0 Answers  


What is the scope variable in javascript?

0 Answers  


Explain window.onload and ondocumentready?

0 Answers  


Categories