A simple and interactive web application built using HTML5 and JavaScript that helps users calculate the total bill amount for food orders. Users can add multiple item prices and instantly generate the final bill.
Food Order Bill Calculator is a beginner-friendly JavaScript project designed to demonstrate how arrays, functions, DOM manipulation, and rest parameters work together to solve a real-world problem.
The application allows users to enter food item prices, view the list of added items, and calculate the total order amount dynamically.
- ➕ Add multiple food item prices
- 📋 Display all entered item prices
- 🧮 Calculate the total bill amount
- ⚡ Dynamic updates without page refresh
- 🎯 Simple and user-friendly interface
- 💻 Built using pure JavaScript without external libraries
- HTML5
- JavaScript (ES6)
- Arrays
- Functions
- DOM Manipulation
- Event Handling
- Rest Parameters (
...) - Array Methods (
forEach) - Dynamic Content Updates
Food-Order-Bill/
├── Food Order Bill.html
└── README.mdgit clone https://github.com/21A35A0503/Food-Order-Bill.gitcd Food-Order-BillOpen the Food Order Bill.html file in your preferred web browser.
No additional setup or installation is required.
-
Enter the price of a food item.
-
Click Add Item to save the price.
-
Repeat the process for multiple items.
-
Click Calculate Total.
-
The application displays:
- The list of entered item prices.
- The total bill amount.
100, 250, 50
Total: $400
Through this project, I learned how to:
- Store data using arrays.
- Manipulate the DOM using JavaScript.
- Handle button click events.
- Use rest parameters in functions.
- Iterate through arrays using
forEach(). - Build interactive web applications using vanilla JavaScript.
- Remove individual items from the bill.
- Add quantity selection.
- Apply discounts and coupon codes.
- Calculate GST/Tax automatically.
- Store order history using Local Storage.
- Improve the UI using CSS.
Harika Neela
GitHub: https://github.com/21A35A0503
If you found this project useful, please consider giving it a Star ⭐ on GitHub.
This project is created for educational and learning purposes.