Skip to content

Instantly share code, notes, and snippets.

umbrella = "open" if raining
var day;
if (day = "Saturday") {
sleep_late;
} else {
groan();
}
if day="Saturday"
sleep_late
else
groan()
var calculateTotalPrice, subtotal, tax;
calculateTotalPrice = function(arg1, arg2) {};
subtotal = arg1 + arg2;
tax = subtotal * 0.085;
subtotal + tax;
calculateTotalPrice = (arg1,arg2) ->
subtotal=arg1+arg2
tax=subtotal*0.085
subtotal+tax
var calculateTotalPrice;
calculateTotalPrice = function(arg1, arg2) {
var subtotal, tax;
subtotal = arg1 + arg2;
tax = subtotal * 0.085;
return subtotal + tax;
};
calculateTotalPrice = (arg1,arg2) ->
subtotal=arg1+arg2
tax=subtotal*0.085
subtotal+tax
var myFunction;
myFunction = function(arg1, arg2) {
return arg1 + arg2;
};
myFunction = (arg1,arg2) -> arg1+arg2
var myFunction;
myFunction = function(arg1, arg2) {};