Menu
Coddy logo textTech

Formatted Output

Part of the Fundamentals section of Coddy's JavaScript journey — lesson 37 of 77.

challenge icon

Challenge

Beginner

The last step of this project is to format the output!

For example, for the following input:

100
5
2

Output in the following format:

Bill Split Calculator
Total (including tip): $105
Each person pays: $52.5

Note: the output should be exactly the same, so note all the uppercase letters and symbols added!

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

All lessons in Fundamentals