Introduction to JavaScript - document.write and console.log (example 1)
by danielkwood
HTML
<html>
<head>
<title>Intro to JavaScript</title>
<script>
// This code will display a Hello World message
console.log("Hello world");
document.write("Hello world");
</script>
</head>
<body>
</body>
</html>