Answers for "Using Named and Default Exports at the same time"

1

Using Named and Default Exports at the same time

//module.js
var x=2;
const y=4;
function fun() {
   return "This a default export."
}
function square(x) {
  return x * x;
}
export { fun as default, x, y, square };
Posted by: Guest on September-03-2021

Code answers related to "Using Named and Default Exports at the same time"

Code answers related to "Javascript"

Browse Popular Code Answers by Language