- Fork and clone this repo.
- Write your code in
main.dart
.
🍋 Maps
Given the following map of a restaurant menu:
const menu = {
'burger': 6.5,
'pizza': 5,
'water': 1.5,
};
- Calculate the total for a given order.
Example:
const order = ['pizza', 'water'];
Output:
Total: $6.5
- If an order element is not on the menu, the output should be:
rice is not on the menu