Table of Content

Hello World



This part of the tutorial is about core JavaScript, the language itself.

However, as this book is available online, the browser is a good option for our working environment for running our scripts. In order to save you time if you intend to focus on another environment (like Node.js), we'll minimize the number of browser-specific commands (like alert). In the following section of the course, we'll concentrate on JavaScript within the browser.

Let's examine how to add a script to a webpage first. You can run the script with a command like "node my.js" in server-side environments (like Node.js).


Writing "Hello World"

javascript
const a= () => "Hello, World!";
a();