The language we are using, Coffeescript, needs at least two words to run a function.
Many functions need an argument as the second word: for example, in pause 3
, the argument is 3. But some functions, like st
or feed
, don't need any arguments.
You can use the word do
to run a
function without arguments.
For example, hide the turtle with do ht
.
do ht
Show the turtle with do st
.
do st
Draw a default black dot with do dot
do dot
You can also use ()
after the function name instead of ()
before it:
dot()
It means the same thing!