This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dawid Grochowski (PGS Software)
committed
Mar 22, 2018
1 parent
d41a9f9
commit 43c9615
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>JavaScript - ES6 Module system</title> | ||
<!--<script type="module" src="_include/21-export.js"></script>--> | ||
<script> | ||
import a from '_include/21-export'; | ||
// console.log (a); | ||
</script> | ||
</head> | ||
<body> | ||
<h3>Check console (right click -> inspect -> console)</h3> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// function myFunction() { | ||
// return 'something new here'; | ||
// } | ||
// | ||
// // exports a function declared earlier | ||
// export { myFunction }; | ||
// | ||
// // exports a constant | ||
// export const foo = 'some constant var'; | ||
// | ||
// // default export function | ||
// export default function() {} | ||
// | ||
// // default export class | ||
// export default class {} | ||
|
||
// default export variable | ||
// export default a = 'default var'; |