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