In this video/post you’ll learn how ES6’s (ES2015) Default Parameters allow you to set default values for any arguments that are undefined when a function is invoked. You’ll also learn how to use Default Parameters to make certain arguments required.
Full article