Skip to content

Commit 23dacfd

Browse files
committed
Import a Default Export
1 parent d436360 commit 23dacfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index1.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ import * as capitalizeString from "capitalize_strings";
55
//Create an Export Fallback with export default
66
//export default function subtract(x,y) {return x-y;} // "maths_functions"
77

8+
// Import a Default Export
9+
import subtract from "maths_functions";
10+
console.log(subtract(7,4));

0 commit comments

Comments
 (0)