Skip to content

Instantly share code, notes, and snippets.

@harrisonmalone
Created June 17, 2020 05:10
Show Gist options
  • Save harrisonmalone/7c4c917f8563fd31e6d75e2b06317c2e to your computer and use it in GitHub Desktop.
Save harrisonmalone/7c4c917f8563fd31e6d75e2b06317c2e to your computer and use it in GitHub Desktop.
console.log(global);
console.log(global);
<!DOCTYPE html>
<html>
<head>
<script src="main.js" type="text/javascript"></script>
<script src="file1.js" type="text/javascript"></script>
<script src="file2.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>
var global = "this is a global var";
console.log(global);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment