Hello Javascript

hello.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello World</title>
<script>
//This is a one-liner comment
//We can see this message in the console of a web browser
//which is usually part of the web browser developer tools
console.log("Hello World!");
</script>
<script src="hello.js"></script>
</head>
<body>
<p>I'm in the body of an HTML. I'll show up in the main area of a web browser.</p>
</body>
</html>

hello.js

1
console.log("I'm in a Javascript file.");

Happy reading.

Comments

Popular posts from this blog

Programming Concepts Part I

Rust Hello World Program

Programming Concepts Part II