When undefined is passed as an argument, the default parameter will be used if any

Published: | Categories: JavaScript | Creative Commons BY-SA 3.0

Description

The default parameter is an ECMAScript 6 feature implemented Firefox 15. Previously, when undefined was passed as an argument, the value became undefined. The implementation has been changed to be the default value just like no argument was passed.

References