Need some help understanding Arcade's syntax. The top two lines throw an error, as shown. The bottom one works fine. I'd prefer to not hard-code field names, so using the bracket syntax with a variable would be preferable to the dot notation ($feature.COLOR). What am I missing here?

