https://github.com/hanasabih/meta-little-lemon-receipt-js
https://github.com/hanasabih/meta-little-lemon-receipt-js
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hanasabih/meta-little-lemon-receipt-js
- Owner: HanaSabih
- Created: 2023-05-24T09:07:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T09:09:40.000Z (about 2 years ago)
- Last Synced: 2025-04-07T14:49:21.442Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# meta-little-lemon-receipt-js
In this exercise, it will work with some data provided as an array of objects, listing information about dishes available in the Little Lemon restaurant.it will need to write a function declaration which will be able to do two things:
If the function is called with the argument true, it will output the names of the dishes and calculate their final price (including 20% tax)
If the function is called with the argument false, it will output the names of the dishes and give their prices without the additional tax
The expected outcome is that all the dishes' names and prices will be shown in the console output.
The text below shows the output that your code should produce:
Prices with 20% tax:
Dish: Italian pasta Price (incl.tax): $ 11.46
Dish: Rice with veggies Price (incl.tax): $ 10.38
Dish: Chicken with potatoes Price (incl.tax): $ 18.66
Dish: Vegetarian Pizza Price (incl.tax): $ 7.74Prices without tax:
Dish: Italian pasta Price (incl.tax): $ 9.55
Dish: Rice with veggies Price (incl.tax): $ 8.65
Dish: Chicken with potatoes Price (incl.tax): $ 15.55
Dish: Vegetarian Pizza Price (incl.tax): $ 6.45