Q. What will be printed in the console on execution of the following JS code:
Code:var array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; var myArr= array.filter(v => v % 3 === 0); console.log(myArr);
β
Correct Answer: (B)
[3, 6, 9, 12, 15]