

MCQOPTIONS
Saved Bookmarks
1. |
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);2.What will be printed in the console on execution of the following JS code: |
A. | myArr |
B. | [2, 4, 6, 7, 8, 10] |
C. | [2, 4, 6, 8, 10] |
D. | [7] |
Answer» D. [7] | |