--- id: 5d792534c3d26890ac1484d4 title: Part 31 challengeType: 0 dashedName: part-31 --- # --description-- The `map` method takes a function and for each element of an array, it passes the element to the function and replace the element with the return value: ```js [1, 2, 3].map(x => x + 1); // [2, 3, 4] ``` In `toNumberList`, chain the `map` method to `args.split(",")` and pass it `parseFloat` to parse each element of the array into a number. # --hints-- See description above for instructions. ```js assert( code .replace(/\s/g, '') .includes('consttoNumberList=args=>args.split(",").map(parseFloat)') ); ``` # --seed-- ## --before-user-code-- ```html Spreadsheet
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```