Created
June 23, 2018 22:36
-
-
Save juniovitorino/35b4661344f12b6f2608f055590eae5d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>JS Module in Browser</title> | |
<script type="module" src="./js/main.js"></script> | |
</head> | |
<body></body> | |
</html> |
This file contains hidden or 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
import { fullname } from './person.mjs'; | |
document.body.innerHTML += `<h1>${ fullname('Junio', 'Vitorino') }</h1>` |
This file contains hidden or 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
export const fullname = (firstname, lastname) => `${firstname} ${lastname}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment