Contoh JavaScript Pertamaku

<!doctype html>
<html>
<head>
    <script type="text/javascript">
    document.write('<h1>Ini JavaScript Pertamaku</h1>');
    </script>
</head>
<body>
</body>
</html>

Sumber : http://www.developer-id.com/