Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript combine dictionaries

var a = {};
a['fruit'] = "apple";

var b = {};
b['vegetable'] = "carrot";

var food = Object.assign({}, a, b);

console.log(food);
 
PREVIOUS NEXT
Tagged: #javascript #combine #dictionaries
ADD COMMENT
Topic
Name
7+6 =