Skip to content

Commit 97d45ba

Browse files
committed
one more export example
1 parent 4c8585c commit 97d45ba

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

server/calculatorEs6.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ function multiply(a, b) {
66
return a * b;
77
}
88

9+
export var division = (a, b) => {
10+
return a / b;
11+
};
12+
913
export { add, multiply };
1014

1115
export default multiply;

server/indexEs6.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ console.log(calculator.add(12, 3));
99
console.log(add(12, 3));
1010

1111
console.log(defaultExportedFunction(12, 3));
12+
13+
console.log(calculator.division(12, 3));

0 commit comments

Comments
 (0)