1.

var materials = [ 'Hydrogen', 'Helium', 'Lithium', 'Beryllium'];console.log(materials.map (material => material.length));4.What will be printed in the console on execution of the below code?

A. [5,5,5,5]
B. [5]{4}
C. [5]
D. Both A and B
Answer» B. [5]{4}


Discussion

No Comment Found