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:
parent
5dfd36af6a
commit
fc64fa49ac
25 changed files with 283 additions and 162 deletions
7
documentation/js/default_args.js
Normal file
7
documentation/js/default_args.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
var fill;
|
||||
fill = function(container, liquid) {
|
||||
if (liquid == null) {
|
||||
liquid = "coffee";
|
||||
}
|
||||
return "Filling the " + container + " with " + liquid + "...";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue