Javascript objects' properties can be named with the empty string, for example:
foo = {
"" : "bar"
}
Dot notation does not seem to be able to call this property. Console output:
foo.
>> "missing name after . operator"
How would you call the "" property?
Use an empty string as a key with the bracket syntax:
foo[""]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With