Optional named function arguments

by Mohan 2012-09-20 22:44:50




Optional named function arguments
function foo({ name:name, projectRazz
roject}) {

Print( project );
Print( name );
}

foo({ name:'soubok', project:'jslibs' })
foo({ project:'jslibs', name:'soubok'})




Tagged in:

531
like
0
dislike
0
mail
flag

You must LOGIN to add comments