Copyright © 2016 Mobilengine Corp. All rights reserved. version: 7.0.4.19927
Sets the value that is associated with a specific key in a map object.
Remarks
You can use the []
indexing operator to set and re-set the value
associated with a specific key in a map, or to add a new key-value pair to the map.
Sample
"This is our map so far:", {} "This is our map now:", {age: 3, name: "Fjord", weight: 25, sex: "female"}
Figure 408. The petCat
map has been updated and extended with the
sex
key