Skip to content

Instantly share code, notes, and snippets.

@leadVisionary
Created February 21, 2018 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leadVisionary/cc8a4de99d2c0dc3eba46a72642cf705 to your computer and use it in GitHub Desktop.
Save leadVisionary/cc8a4de99d2c0dc3eba46a72642cf705 to your computer and use it in GitHub Desktop.
Trying ECMAScript modules part duh
<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">
greetCustomer(document.querySelector("#greeting"));
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment