Answers for "javascript combine dictionaries"

0

javascript combine dictionaries

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

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

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

console.log(food);
Posted by: Guest on October-16-2020

Code answers related to "javascript combine dictionaries"

Code answers related to "Javascript"

Browse Popular Code Answers by Language