Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The Type color [1/11]

The Type color

The type color represents colors.

In this example, variables myColor1 and myColor2 are of type color.

Values of variables myColor1 and myColor2 are given by named initializers. Named initializers begin with a slash character (/).

After executing the program, try changing the initial value of variable mycolor2. Set it to to yellow instead of blue.

You can click on the 'Overview' button in the menu to see how far you have progressed.