What will be returned if we call f(1);? const b = [1, 2, 3]; const f = (a, ...b) => a + b;
Correct Answer: 1
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 value of a? let a = 'a'; let b = 'b'; a = [a, , b] = [1, 2, 3];
Which function will return 10 when called like this: f(10);
Which event handlers can be used to create hover effect on HTML element?
What's the output? console.log(typeof a); console.log(typeof b); function a() { } var b = function () { };
Which example is correct of Local Scope Variable?
var x = { foo: 'A' }; x.constructor.prototype.foo = 'B'; var y = {}; console.log(x.foo); console.log(y.foo); Which two values will be logged?
var q = null; q++; What is q?
After the following code: var a = function(){ this.b = 1; this.deleteMe = function(){ delete this; } }; var c = new a(); c.deleteMe(); What is the value of (String(c))?
Math.min() < Math.max(); will return
'bar'.split().length returns: