JavaScript: Hello, World!

To follow the tradition we'll start with writing a 'Hello, World!' program. The program will display following text:

  Hello, World!

To display something on screen, you need to give computer a special command. In the JavaScript language the command is — console.log().


Copy the exact code from the instructions into the editor and run it by pressing the “Submit” button.

console.log('Hello, World!');

Note that if you type hello, woRld! instead of Hello, World!, it will be counted us an absolutely different text, because in JavaScript capital and small letters are different symbols. Letter size is called case and in programming the frase case is important is frequently used. This rule affects almost everything in code so get used to pay close attention to case.


If you got stuck and don't know what to do, you can ask a question in our huge and friendly community