What is the value of b? let a = [1, 2, 3, 4, 5]; let b = [1, 2, ...a];
Correct Answer: [1, 2, 1, 2, 3, 4, 5]
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
How can you remove all of an Element’s children from the DOM?
Is it possible using JavaScript, without 3rd party libraries, to select DOM elements with such selector: #question > option
Select all correct statements about Object.prototype
How do you create a Date object in JavaScript?
Which is used in JavaScript to insert special characters?
What will the following code, when evaluated, do? var void = function () {};
console.log( typeof [1,2] ) will print out:
Consider: var x = ['a', 'b', 'c']; Which line of code will remove the first element of the array, resulting in x being equal to ['b', 'c']?
Evaluate: new Boolean(new Boolean(false)).valueOf()
var a = isNaN(null); is a true or false?