JSFiddle - React, Tailwind, and code Playground
by tymeJV
JavaScript
var j1 = {name: 'Varun', age: 24};
var j2 = {code: 'NodeJS', alter: 'C++'}
for (var key in j2) {
j1[key] = j2[key];
}
console.log(j1);
by tymeJV
var j1 = {name: 'Varun', age: 24};
var j2 = {code: 'NodeJS', alter: 'C++'}
for (var key in j2) {
j1[key] = j2[key];
}
console.log(j1);