Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Constant Block is an area of code specifically used for assigning symbols (useful names) to constants so that the symbols can be used anywhere in code where that constant value is needed. This makes code more readable and easier to maintain should you later have to change the value of a constant that appears in many places. These constants are global to the object so that any method within it can use them. There are many ways to define constants, described below.children

Excerpt
hiddentrue

Declare a Constant Block. to add global constants to your object.