DEV Community

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

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.