Your First program: Hello World

Traditionally, the first program is to display the words "hello world". Here is how to create "hello world" in Alice 3.

Important Notes

When we add the witch to the scene, we are creating an instance of the Witch class. The name of a class always begins with an uppercase letter. The name of an instance should always begin with a lower case letter. Even if it is the name of a person.

In programming, names can not have spaces or other special characters. If we want the witch to be named Jane Doe, we would have to make the name janeDoe.

Notice that the name starts with a lower case letter, but the D is upper case. This style is called "camel case". It make it easier for us to see the name as two words, because we can not use a space to separate the words.


If you make a mistake, you can undo it by clicking Ctrl+Z (Windows) or Command+Z (Mac).

If you add an object and want to delete it, right click on the object in the object list (where it says this.) and select delete.

NEXT: The first program: Hello World