Exerpad
Exercise 7 · Chapter: ObjectsRequired+50 XP

Menu Prices

You have a menu:

let menu = { burger: 5, fries: 3, drink: 2 };

Read the number of items ordered, then read each item name. Print the total price.

Example: if someone orders burger and fries, the total is 8.

Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.