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