--- id: 5ddb965c65d27e1512d44da5 title: Step 12 challengeType: 0 dashedName: step-12 --- # --description-- We need a way to iterate through all the `meal` items in the `total` array and return the values that the user entered as an array. The `map()` method allows us to do exactly that. Delete `const meal = total[0];` and chain the `.map()` method to the end of your `Array.from()` method. Here's an example of `.map()` chained to an array: `[3, 2, 1].map()` # --hints-- See description above for instructions. ```js assert( code .toString() .replace(/\s/g, '') .match( /Array\.from\(document\.getElementsByClassName\([\'\"\`]cal\-control[\'\"\`]\)\)\.map\(\)\;?/ ) ); ``` # --seed-- ## --before-user-code-- ```html

Calorie Counter

Sex
Breakfast
Lunch
Dinner
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```