**named export**
./math.js
export const plus = (a, b) => a+b; --> 한개의 파일로 export 하고

가져올때 다음과 같이 할 수 있다.
import {plus} from "./math.js"; --> export 할 때의 이름과 똑같이 지어주고 import
or
import {plus as add} from "./math.js"; --> as 로 이름을 바꿔줄 수 있다.
**default export**
각 파일마다 단 한개의 default export 를 가질 수 있다.
****./math.js
const plus = (a, b) => a+b;
const divide = (a, b) => a/b;
export default {plus, divide};

가져올때 다음과 같이 할 수 있다.
import math from "./math,js"; --> 이름 아무거나 지어줘도 된다.
*
모든 exported 된 내용을 import 하고 싶을때, 단! default export 가 없는 파일에서 가능하다.
./math.js
const plus = (a, b) => a+b;
const divide = (a, b) => a/b;

가져올때 다음과 같이 할 수 있다.
import * as myMath from "./math.js"; --> math 모듈에서 모든걸 import 해서 myMath 객체에 넣는다.
load fast 를 위한 Dynamic import
실제로 유저가 사용할 모듈만 import 할 수 있다.

async function doMath() {
	const math = await import("./math");
	math.plus(2,2);
}

btn.addEventListener('click',doMath)