not really, but you can simulate it by checking if a value was passed and a default value was set, for example
optionalArg = (typeof optionalArg == "undefined")?'defaultValue':optionalArg
Note that such a method works even when the optionalArg option is provided, but evaluates to false - what happens with a simpler idiom like optionalArg=optionalArg || 'default'.
arguments, , , , .