Next: Template Strings, Previous: Classes, Up: ES2015 [Index]
Object literals are extended to
var obj = { // Sets the prototype. __proto__: theProtoObj }
var obj = { // Shorthand for ‘handler: handler’ handler, }
var obj = { // Methods toString() { ... }, }
var obj = { // Super calls method() { super() ... } }
var obj = { // // Computed (dynamic) property names [ "prop_" + (() => 42)() ]: 42 }