How to write a hello world example of JavaScript?

JavaScript is an interpreted language, which means that there is no need for compilation. The code can be just written and attached to HTML code. Here is an example code for Hello World.

<title>Hello World</title>
<h1>Hello World</h1>

Just write this code in a word editor, save the file as .html and load.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.