1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Switching default arguments to use an if instead of an and, more documentation.

This commit is contained in:
Jeremy Ashkenas 2010-11-21 21:12:59 -05:00
parent 5dfd36af6a
commit fc64fa49ac
25 changed files with 283 additions and 162 deletions

View file

@ -0,0 +1,7 @@
var fill;
fill = function(container, liquid) {
if (liquid == null) {
liquid = "coffee";
}
return "Filling the " + container + " with " + liquid + "...";
};