Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Named Arguments [1/9]

Named Arguments

Arguments of a println statement must be separated by comma symbols (,). The first statement contains 3 arguments. The arguments are:

  • "A day has "
  • 24*60
  • " minutes"

The second statement contains 2 arguments. The arguments are:

  • fg: /pink
  • "ZedLX"

Named argument fg of println statement can be used to change the foreground color.

Names of named arguments must be followed by a colon symbol (:).

When a named argument is used in a println statement, all arguments of the println statement must be enclosed inside square brackets [].