1.

var array = [2, 4, 6, 7, 8, 10];
var myArr= array.filter(v => v / 2 === 0);

console.log(myArr);
3.What will be printed in the console on execution of the below code?

A. [8, 6, 7, 9]
B. 4
C. [4]
D. 8, 6, 7, 9
Answer» B. 4


Discussion

No Comment Found