params = {}; params['someWord'] = someVal; var params = {someWord: "someVal", two: "2"}; //There is no "associative array" in JavaScript, but Objects are commonly used as a substitute and provide similar functionality.