Multiple Choice
What is the output of the following code?
Var sum = 0;
Var x = [1,3,7,11];
X.forEach(sumArray) ;
Function sumArray(value) {
Sum += value;
}
A) 0
B) 231
C) 11
D) 22
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q45: The slice()method reverses the order of items
Q46: JavaScript supports <u>logical operators</u> that connect several
Q47: Identify the general syntax of the do/while
Q48: _ is a section of an array.
Q49: JavaScript allows for the creation of _,in
Q51: When a <u>pass </u>statement is encountered,control is
Q52: Explain the length property of an array
Q53: Arrays can be used to store information
Q54: Gregor, a software developer, is developing a
Q55: Identify the general structure for accessing each