🚀 30 Days of JavaScript – Day 13 Today I built a Tip Calculator with Bill Split Feature. This tool calculates: • Tip amount • Total bill • Amount each person should pay when splitting the bill. 🧠 Concepts Used: user input handling arithmetic calculations variables and type conversion 🎥 Demo below 👇 Full source code in the First comment. #JavaScript #WebDevelopment #CodingJourney #LearningJavaScript #ProblemSolving

let bill = prompt("Enter the bill amount:"); let tipPercent = prompt("Enter tip percentage:"); let people = prompt("How many people are sharing the bill?"); bill = Number(bill); tipPercent = Number(tipPercent); people = Number(people); let tipAmount = (bill * tipPercent) / 100; let totalBill = bill + tipAmount; let perPerson = totalBill / people; alert("Tip Amount: " + tipAmount); alert("Total Bill: " + totalBill); alert("Each Person Pays: " + perPerson);  

To view or add a comment, sign in

Explore content categories