Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

associative array add new key and value js

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.
 
PREVIOUS NEXT
Tagged: #associative #array #add #key #js
ADD COMMENT
Topic
Name
7+8 =