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 is differential inheritance?

0 Answers  


Iam getting xml when we click on one button.Iam placing that xml in dom.Im getting that xml data in one xsl.In that xsl I want to increase the variable value which is declared in xsl. Ex: <parent_node> <childNode> <first><d1>ffftt</d1></first> <first><d1>eeeeiii</d1></first> <first><d1>uuuuwww</d1></first> </childNode> <childNode> <first><d1>fff</d1></first> <first><d1>eeee</d1></first> <first><d1>uuuu</d1></first> </childNode> </parent_node>

0 Answers  


Can you run javascript in notepad?

0 Answers  


What are the Non-primitive data types in JavaScript?

0 Answers  


What are the different types of errors in javascript?

0 Answers  


What is eager initialization in java?

0 Answers  


Are there any iphone Institutes which also train iphone automation testing in Hyderabad?

0 Answers  


How will you create new object in javascript?

0 Answers  


What is callback?

0 Answers  


What is Javascript namespacing? How and where is it used?

0 Answers  


Program to return the address family of a socket

0 Answers  


How do I turn off javascript in chrome?

0 Answers  


Categories