Skip to content

Instantly share code, notes, and snippets.

@SakshiShreya
Last active November 2, 2019 20:21
Show Gist options
  • Save SakshiShreya/2a904abbf8e8611366f8c85edb11b91b to your computer and use it in GitHub Desktop.
Save SakshiShreya/2a904abbf8e8611366f8c85edb11b91b to your computer and use it in GitHub Desktop.
Barebone html file with main.js
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
</body>
</html>
console.log(a1);
console.log(a2);
console.log(a3);
console.log(a4);
console.log(a5);
console.log(a1());
console.log(a2());
function a1() {
console.log('a');
}
var a2 = function() {
console.log(b);
}
var a3 = 1;
let a4 = 2;
const a5 = 3;
console.log(a1);
console.log(a2);
console.log(a3);
console.log(a4);
console.log(a5);
console.log(a1());
console.log(a2());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment