Default Function Parameters

suggest change
function addTwo(a, b = 2) {
    return a + b;
}

addTwo(3) // Returns the result 5

With the addition of default function parameters you can now make arguments optional and have them default to a value of your choice.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Node.js v6 new features:
* Default Function Parameters

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
64 ES6
67 Redis
69 MongoDB
80 Node.js v6 new features
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require