Task

Create an enumeration of constants with and without explicit values.




var APPLE  = 1
var ORANGE = 2
var PEAR   = 3
 
var CHERRY = 4
var BANANA = CHERRY + 1
var GRAPE  = BANANA + 1
 
System.print([APPLE, ORANGE, PEAR, CHERRY, BANANA, GRAPE])