Project: Make Math Happen Instantly

Solve the challenge by performing calculations and displaying results in real time.

Let’s calculate a restaurant tip—just like the ones you’ve seen on food delivery apps! Create a simple tip calculator. We’ve already set up the HTML for you, assuming a $100 bill and a 15% tip.

Use JavaScript to fetch the bill and tip percentage from the page, calculate the tip, and display it using the <p id="result"> element.

Get hands-on with 1400+ tech skills courses.