16bugs JavaScript: from Zero to Hero
Log in

JavaScript: from Zero to Hero

#189 default params

Reported by Volkan Ozcelik · 14 Jul 2018, 07:08

Status
New
Priority
Normal
Assigned to
Volkan Ozcelik
Category
Lessons
Version
None

A potential ES6 misconception: default parameters are only applied if the argument is undefined–not if they're falsy.

History

14 Jul 2018, 07:08Volkan Ozcelik submitted the bug