Note that you can load a JavaScript file from a remote server. Write for DigitalOcean Welcome to Learn HTML, the easiest way to learn HTML & CSS online, interactively. Create a JavaScript file nodejs_hello_console.js using the below content. Console-based Hello World Example Use the Node.js console module to print output on your system console. As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. It is a simple script that only displays the words "Hello, World!" For the file alert.js in the same folder: video courses on JavaScript and Frameworks, A script in an external file can be inserted with, If you have suggestions what to improve - please. To write this first style of “Hello, World!” program, we’ll encase the string within the parentheses of the alert() method. In really ancient books and guides, you may find comments inside