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