Array Methods
map transforms every item and filter keeps the ones that pass a test.
Example
const big = [1, 5, 9].filter(n => n > 4);
console.log(big.join(","));
Your task
Double each number in the list with map and log them joined by commas.
JavaScript & TypeScript
map transforms every item and filter keeps the ones that pass a test.
const big = [1, 5, 9].filter(n => n > 4);
console.log(big.join(","));
Double each number in the list with map and log them joined by commas.
Press Run to see the result.