Correct Answer: var sum = arr.reduce(function(a,b){ return 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 does return do?
In HTML, JavaScript code must be inserted between <script> and </script> t
The keyword or the property that you use to refer to an object through which they were invoked is
Which company developed JavaScript?
Consider the following statements var count = 0; while (count < 10) { console.log(count); count++; } In the above code snippet, what happens?
A property is the object oriented equivalent of:
How do you round the number 3.14, to the nearest integer?
... JavaScript is also called client-side JavaScript?
Document Methods in W3C DOM, supports all the methods available in Legacy DOM?
What's the output? function clickValue(){ alert(Math.round(-20.5)); } clickValue();