Created
February 21, 2018 03:47
-
-
Save leadVisionary/90f4f7774bcf013fb58c1c2062adeafe to your computer and use it in GitHub Desktop.
ECMAScript modules part dumb
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
<html> | |
<head> | |
<title>An E-commerce retailer</title> | |
</head> | |
<body> | |
<h1> | |
Hello <span id="greeting">Placeholder</span>!</h1> | |
<h2> | |
Please <a href="https://www.blogger.com/buy/12345">buy</a> this product</h2> | |
</body> | |
<script src="greeting.js" type="module"></script> | |
<script type="module"> | |
import {greetCustomer} from './greeting.js' | |
greetCustomer(document.querySelector("#greeting")); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment