javascript create associative array dynamically code example Example: javascript init associative array var arr = { "one": 1, "two": 2, "three": 3 };