Logo

Programming-Idioms

History of Idiom 8 > diff from v1 to v2

Edit summary for version 2 by :

Version 1

2015-05-06, 21:04:47

Version 2

2015-06-04, 19:22:56

Idiom #8 Initialize a new Map (associative array)

Declare a new map object x, and provide some (key, value) pairs as initial content.

Idiom #8 Initialize a new Map (associative array)

Declare a new map object x, and provide some (key, value) pairs as initial content.

Code
x = {"one": 1, "two":2}
Code
var x = {"one": 1, "two":2}
Comments bubble
This JSON object is essentially an associative array
Comments bubble
This JSON object is essentially an associative array