Can ES6 object shorthand notation be combined with regular object notation?

Viewed 453

With ES6 we can now utilize object shorthand notation for creating objects...

var a = 1, b = 2, c = 3;
var obj = { a, b, c };

Is it possible to combine shorthand notation with regular notation?

In other words, is the following legit?

var obj = {a, b, c, d: 'foo'};

And if so, are there any gotchas I should be aware of?

2 Answers
Related