JavaScript does not support named parameters. For example following will not work in JS: var something = foo( one: 1, two: “2” ); As a workaround people use functions that accept single parameter – object reference: var something = foo( { one: 1, two: “2” } ); but I think such notation is not good…
JavaScript functions, named parameters.
Posted on