Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Last active January 30, 2018 08:08
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 chathurangat/1ace6e302fdd6ddd7c42e58ea7cc0ef4 to your computer and use it in GitHub Desktop.
Save chathurangat/1ace6e302fdd6ddd7c42e58ea7cc0ef4 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<p id="welcome-text"></p>
<p id="calculator-text"></p>
</body>
<script src="main.js"></script>
<script type="text/javascript">
//we can invoke "getWelcomeMessage" here because it has already been assigned to "window" object
var message = getWelcomeMessage("www.springbootdev.com");
console.log("printed on index.html [" + message + "]");
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment