Of course and JS works the same way. But Language.string is used for implicit coercions where it might have an initial value of undefined. In that case, I don’t think you’d usually want to be using “undefined”. You probably want “” instead.
I don’t remember all the discussions we had around this in the past. If anyone remembers better, please jog my memory… Harbs > On Nov 12, 2021, at 8:08 PM, Edward Stangler <estang...@bradmark.com> wrote: > > > In Flex, both String(null) == "null" and ""+null == "null" (the string > "null", not the null value). > > Don't know if that's the equivalent of Language.string(). > > > On 11/12/2021 4:05 AM, Harbs wrote: >> I wonder if Language.string() should return “” for undefined. It currently >> returns null. I think “” would generally be a more expected result. >