Correct Answer: var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
What will be logged into the console? var animals = ['moose', 'giraffe', 'unicorn']; animals.forEach(function(animal, index) { if (index === 2) { console.log(animal); } });
What methods, other than if-else/switch, can be used to execute conditional statements?
What is the value of foo? var foo = 10 + '20';
What is logged? if ('10' + 1 == 101) { var a = 'yes'; } console.log(a);
Return of this function? var a = 0, b = 1; function test(value) { return value; } test(a || b);
While coding a loop, which statement can be used to ignore the rest of the statements, and continue with the beginning of the loop?
Which can be used to dynamically change the value of a tag?
Consider the following code: Which one shows the correct values for 'variable1' and 'variable2'?
A form contains two fields named id1 and id2. How can you copy the value of the id2 field to id1?
How can it be determined if JavaScript is disabled in the user’s browser?