Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //08. * Calorie Object
- calorieObject = arr => {
- 'use-strict'
- let foodCal = {}
- for (let i = 0; i < arr.length; i += 2) {
- foodCal[arr[i]] = +arr[i + 1]
- }
- console.log(foodCal)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement