Hello World in Javascript

Watch out! This tutorial is over 8 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.
Tutorial Difficulty Level    

This is how you would display “Hello World” to the browser in Javascript.

<!DOCTYPE HTML>
<html>
<body>
 
  <p>Header...</p>
 
  <script>
    alert('Hello, World!')
  </script>
 
  <p>...Footer</p>
 
</body>
</html>