Skip to content

Commit e37050f

Browse files
committed
tweaking use of JS in HTML
1 parent 389ef61 commit e37050f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

3 - How to use JS in HTML/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
<title>3 - How to use JS in HTML</title>
55
</head>
66
<body>
7+
<h1>Welcome to Spoken Tutorials</h1>
8+
<script>
9+
if (true) {
10+
console.log("I'm inside if!");
11+
} else {
12+
console.log("I'm inside else!");
13+
}
14+
</script>
715
<script src="main.js"></script>
816
</body>
917
</html>

0 commit comments

Comments
 (0)