« * K JavaScript: Arrow + map
const n = [1, 2, 3];
console.log(n.map(x => x * 10));

It prints:

[ 10, 20, 30 ]
4 Previous: Functions6 Next: Objects9 Cheat sheet
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup