Code AnalysisBeginner 60s
Trace: Map to Doubles
What does this print?
Starter code
const nums=[1,2,3,4]; const doubled=nums.map(n=>n*2); console.log(doubled[2])
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.