Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Named Arguments [3/9]

The first argument of the clearScr procedure sets the global background color. The second argument sets the global foreground color. [Run the program]

The named argument height of println statement sets the line height.

Remember:

  • when a named argument is used in a println statement, all arguments must be put inside square brackets [].
  • The strings to be printed out must be placed after all named arguments.

Exercises 1-5:

Un-comment the last five lines, one by one, by removing the symbols /// . Each time, examine the produced error messages. Then try to correct each error.

Loading...