I originally started writing Arcade expressions in ArcGIS Online. Today I attempted to write an expression in Pro 2.6 with the intention of updating a webmap. I get errors in the Expression Builder that I don't get using AGOL. In ArcGIS Pro, the error states "Invalid expression. Error on line 1. Colon expected."

However, this expression works fine on the web version.

Why don't these work the same? Where does this colon go?