JavaScript in 60 Seconds

Hello World

Defining a message

Hello World is a common first task in any programming language: How to I print a simple message?

In JavaScript you define a message by wrapping it in double or single quotes.

This is called a string.

"Hello world"

So now how do we print this message out?

Printing the message

We can print out the message by using the console.log() command:


Exercises. Now you try it.

Write your own message and print it.