Why it's important?
Web Browser
Mobile Phone
Web Server
Desktop
<!DOCTYPE html>
<html>
<head>
<script>
console.log("Hello!");
</script>
<script src="externalFile.js"></script>
</head>
<body>
<button onclick="console.log('Hi!')">Click Me!</button>
<script>
console.log("Hello again!");
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<script>
console.log("Hello!");
</script>
<script src="externalFile.js"></script>
</head>
<body>
<button onclick="console.log('Hi!')">Click Me!</button>
<script>
console.log("Hello again!");
</script>
</body>
</html>
The text that is not run...
<script>
console.log(1);
// single line comment
console.log(2);
/* multi
line
comment */
console.log(3)
</script>
How to draw a DOM tree?
Let's see how to make one for a button..