Subscribe to Evented Mind to watch the full video.

Already have an Evented Mind subscription?

Subscribe to Evented Mind to watch the full video.

Need a second look? Watch again

ES2015

Default Parameters

You can now define default parameter values for functions. We used to do this by hand by "guarding" against null values and providing defaults in the body of the function. Now it's a lot easier to read and understand because the defaults can be provided right in the parameters list of the function. It even works with objects and nested object properties.

  • JavaScript
Join the Discussion

Want to leave a comment? .