|

Typer

JavaScriptbeginner

Array Transform

Type the snippet exactly as shown. Press Tab to indent, Esc to restart.

Type in the code
0/103 chars / Target 34 WPM
const scores = [12, 18, 21, 9];
const doubled = scores.map((score) => score * 2);
console.log(doubled);