Can you use both named and default exports in the same ES6 module?

  • Yes
  • No
  • Only if the module is in strict mode
  • Only if the named exports are functions
Yes, you can use both named and default exports in the same ES6 module. This allows you to export a single "default" value along with multiple named exports from the same module.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *