Is there any difference between ({}) and {} in javascript?

Viewed 118
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?

4 Answers
Related