Construct a JavaScript expression that returns a value based on an enumerated list of possible values