and you can put information it it like
So im wondering is there away to print out the value of the key like output.getvalue[key] ???
Originally posted by Mark Hughes: I was told a map can be declared as
For example, after declaring your variable as shown above, you could write:
and now the object has a property named abc that contains the value 123.
The value can be retrieved with either of:
which are completely equivalent.
This creates a property on output named testKey:KEY.
That's a bit weird. It's not customary to create properties that contain colons. In fact, even though you can, I'd strongly advise against it -- too many opportunities to screw things up and it looks odd and confusing. Generally, properties follow the naming conventions for variables (think member variables in Java).