DEV Community

Discussion on: JavaScript: Default function Parameters

Collapse
emptyother profile image
emptyother

Note that when passing the value null, it is not replaced with a default value. I've stopped using null entirely but some libraries return it instead of undefined.