Monday, January 10, 2011

Default Arguments

Default Arguments:

I’ve talked about var args, the arguments keyword, and even the length of a function that has default arguments, but I’ve never written an article all about default arguments… until today. As a refresher, default arguments look like this: function foo(a:int, b:int=3): void { } In the above example, a is a required argument and [...]

No comments:

Post a Comment