function optionalArguments(a, /*optional*/b){
if(!b){b = []};//If b isn't set, create an empty array
//OR shorthand for this
b = b || [];
/*
* The OR operator looks to see if b is true, if it is it skips
* creating the Array. If b is false it creates the array. Not
* very readable.
*/
}