{"conversations": [{"from": "human", "value": "Pots dir-me com usar la funci\u00f3.map () en javascript?"}, {"from": "gpt", "value": "Aqu\u00ed us mostro un exemple de com usar map (): const numbers = [1, 2, 3, 4, 5]; const doubledNumbers = numbers.map( function( number) { return number * 2; }); console.log( doubledNumbers); / [2, 4, 6, 8, 10]"}]}