So far, everything you've done has been one line in the console. But interesting programs involve many lines of code.

There is a new tool here: the editor. You can write many lines of code, press the Run button, and the output will show up in the results box below.

You may notice that the box already has some code in it, and each line starts with //. Anything after a // is called a comment and is ignored by the computer.

Comments are extremely useful for explaining tricky parts of your code or leaving yourself reminders. You can also temporarily disable lines of code by commenting them out, or adding // in front of them.

The computer will ignore the code on lines 1-2, since it is commented out.

On line 4, find the length of the word "cake" and multiply it by 9.

Nesaprotu kas te jādara! sad_mini.gif kāds pasakat kas man jādara!