let obj1 = {
a: 1,
b: 2,
c: 3
};
let obj2 = ({
a: 1,
b: 2,
c: 3
});
Are obj1 and obj2 totally the same? Are they the same way to define an object in javascript?
let obj1 = {
a: 1,
b: 2,
c: 3
};
let obj2 = ({
a: 1,
b: 2,
c: 3
});
Are obj1 and obj2 totally the same? Are they the same way to define an object in javascript?