Enterprise Verified
1

Array Mapping in Modern JS

intermediate • Fill Blank
Fill in the array method name to transform every number into its double:
Fill in the missing keyword or attribute:
const numbers = [1, 2, 3];\nconst doubled = numbers. (n => n * 2);
Helpful Hint:

A three-letter functional array iteration method that returns a new array.

Expected Solution:
map
Explanation: `Array.prototype.map()` creates a new array populated with the results of calling a provided function on every element.
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Enterprise Operations Suite

Streamline Employee Payroll & Attendance Operations

Eliminate manual spreadsheet errors. Integrate automated attendance tracking, EPF/ESI statutory calculations, and custom GST invoices.

Copied!

AI Learning Assistant

Ready to explain & guide

Hello! I am your MBS Digital AI Tutor. Ask me to explain concepts, review code, or suggest debugging steps.

Quick Starters:
AI Tutor is thinking...