What is the easiest JavaScript debugging

Create your first JavaScript program

We need the usual structure of an HTML file with the DOCTYPE, head and body area (see chapter https://www.html-seminar.de/html-seitenaufbau.htm).

For our first JavaScript program we program the typical "Hello World" program.

Where is the JavaScript program located?

The JavaScript code can be in the head area as well as in the body area (before the closing).

Differentiation between JavaScript and HTML

So that the browser knows where HTML ends and JavaScript begins, the JavaScript program is written between the HTML