πŸ“Š JavaScript
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));
  • (A) [5,5,5,5]
  • (B) [5]{4}
  • (C) [5]
  • (D) Both A and B
πŸ’¬ Discuss
βœ… Correct Answer: (A) [5,5,5,5]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
216
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate