Correct Answer: ["a", "b"]
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 the Function length in this case: function zeroFunc(name, value)
JavaScript is a[n] ... -scoped programming language.
Unlike C and C++, Javascript executes all statements .....
What will the log display after executing the following? var book = { page1: 'Once upon a time...', page2: 'And thus they traveled north...', page3: 'The rock golem hoisted...', printPages: function() { return book.page1 + book.page2 + book.page3; } } for (page in book) { console.log(page); }
Consider the following code: var bar = (function(){ function Bar(){}; return new Bar(); })(); How will you make another instance of Bar?
What will be the output when the following statement code is executed? if(true){ const a=1; console.log(a); a=100; }
Which code samples creates an alert box with 'false' in it?
Which code is self-executing anonymous function expression?
What is printed in the console? for (let i = 0; i<5; i++) { console.log(i); } console.log(i);
How you will do empty an array in JavaScript? var array = ['1', '2', '3', '4', '5', '6'];