Skip to content

Instantly share code, notes, and snippets.

@LearningMaterial
Created March 11, 2018 21:22
Show Gist options
  • Save LearningMaterial/d741d230269db9035431fb9ef6f663ea to your computer and use it in GitHub Desktop.
Save LearningMaterial/d741d230269db9035431fb9ef6f663ea to your computer and use it in GitHub Desktop.
function calculateBill(total, tax, tip) {
return total + total * tax + total * tip;
}
var result = calculateBill(100, 0.13, 0.15);
console.log(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment