Skip to content

Instantly share code, notes, and snippets.

@sk8terboi87
Last active March 16, 2017 02:38
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 sk8terboi87/2eff633a3037d79952f9fb5947b6bee6 to your computer and use it in GitHub Desktop.
Save sk8terboi87/2eff633a3037d79952f9fb5947b6bee6 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Bad Parts</title>
<script src="shakespeare.js"></script>
<script src="wordsworth.js"></script>
<script type="text/javascript">
console.log(getPoem());
</script>
</head>
<body>
The Bad Way - Global
</body>
</html>
<script type="text/javascript">
var poem = 'The west yet glimmers with some streaks of day.';
function getPoem() {
return poem;
}
</script>
<script type="text/javascript">
var poem = 'Instruct them how the mind of Man become';
function getPoem() {
return poem;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment