Skip to content

Instantly share code, notes, and snippets.

@tpowell
Created June 25, 2013 23:22
Show Gist options
  • Save tpowell/5863379 to your computer and use it in GitHub Desktop.
Save tpowell/5863379 to your computer and use it in GitHub Desktop.
Simple helloworld example. Yes document.write is here but calm yourself if you know JS as we are on boarding people. Sadly alert is no better and console.log() is a next step with certain assumptions.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Hello World</title>
</head>
<body>
<h1>First HTML Based JavaScript</h1>
<hr>
<script>
document.write("Hello World from JavaScript!");
</script>
<p>See at <a href="http://javascriptref.com/3ed/ch1/hellojsworld.html">Book site</a></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment