[1, 2, 3].map(function(x) x * x); // $ Alert [1, 2, 3].map(function(x) { return x * x; }); [1, 2, 3].map((x) => x * x);