SyntaxFix
Write A Post
Hire A Developer
Questions
As an update...with ECMAScript 6 you can FINALLY set default values in function parameter declarations like so:
function f (x, y = 7, z = 42) { return x + y + z } f(1) === 50
As referenced by - http://es6-features.org/#DefaultParameterValues