--- id: 5ddb965c65d27e1512d44daa title: Step 17 challengeType: 0 dashedName: step-17 --- # --description-- While you can use a loop to add everything in the `total` array to a variable, JavaScript provides the useful `reduce()` method. Chain the `reduce()` method to the `Array.from()` expression. # --hints-- See description above for instructions. ```js assert(code.replace(/\s/g, '').match(/Number\(meal\.value\)\)\.reduce\(\)/)); ``` # --seed-- ## --before-user-code-- ```html

Calorie Counter

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