DEV Community

loading...

Discussion on: A creative way to have required arguments in JavaScript

Collapse
gabrielrufino profile image
Gabriel Rufino Author

Hey man :D

If you can have default parameters, you don't need to require the variable. If you need to require the parameter, it doesn't make sense to have default parameters.