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
What is use of JavaScript and jquery?
How many data types are there in javascript?
What does javascript do?
Why javascript is called lightweight language?
How to create a popup warning box?
Difference between '=', '==' and '===' operators?
How can javascript be used to personalize or tailor a web site to fit individual users?
Explain event bubbling and event capturing in javascript?
Is javascript necessary for web development?
Can you assign an anonymous function to a variable?
What is missing in my code? function numberTally(numList) { var evenTotal = 0; var oddTotal = 0; for (var i = 0; i <= numList.length; i++) { if i % 2 { // i is odd oddTotal += numList[i]; // or oddTotal = oddTotal + numList[i]; } else { // i is even evenTotal + numList[i]; } } alert(oddTotal); return evenTotal; }
What is an undefined value in JavaScript?