Skip to content

Instantly share code, notes, and snippets.

View trevor-jameson's full-sized avatar
🕹️
Living 1UP @ a time!

Trevor Jameson trevor-jameson

🕹️
Living 1UP @ a time!
  • Washinton DC
View GitHub Profile
def pluralize(base_word)
return base_word[-1] == "s" ? base_word : `#{base_word}s`
end
# Irregular noun
pluralize("mice")
// "mices"
# Proper Noun
pluralize("Bill Gates")
@trevor-jameson
trevor-jameson / Trevor_Jameson_SA1.js
Created October 18, 2017 00:55
Trevor Jameson - SSP7 East - SA1 Submission
//
// TODO
//
//Exercise 1 - Need to round to 2 digits
function billTotal(subtotal) {
const TAX = 0.095;
var tip = 0.15;
return Math.round(subtotal + (subtotal * TAX) + (subtotal * tip));