Menu
Coddy logo textTech

Calculating The Tip And Total

Part of the Fundamentals section of Coddy's JavaScript journey. Lesson 35 of 77.

challenge icon

Challenge

Beginner
Calculate the total bill amount, including the tip, and output the result. Use the provided billAmount, tipPercentage, and numPeople variables to perform your calculations. Note that for this specific challenge, you only need to output the total bill amount including the tip, on its own line after the Bill Split Calculator title. The splitting comes in the next step.
Check the hint for help!

Try it yourself

let billAmount = parseFloat(inp[0]); // Don't change this line
let tipPercentage = parseFloat(inp[1]); // Don't change this line
let numPeople = parseInt(inp[2]); // Don't change this line

// Type your code below
// Print the title, then calculate the total amount including the tip and print it.
// numPeople is not needed yet: the split comes in the next lesson.

All lessons in Fundamentals

Practice on your own: Online JavaScript compiler