Q. What will be printed in the console on execution of the below JavaScript code?
Code:
var materials = [ 'Table', 'Chair', 'Boxes', 'Press' ]; console.log(materials.map (material => material.length));
β
Correct Answer: (A)
[5,5,5,5]