var obj = { constructor (a, b) { }, get id () { return this.id; }, set id (id) { this.id = id; }, * gen () { }, fn () { }, ["fn2"] () { }, method: function () { }, "method2": function () { } }; /**************************************************/ var obj={constructor(a,b){},get id(){return this.id;},set id(id){this.id=id;},*gen(){},fn(){},["fn2"](){},method:function(){},"method2":function(){}}; /**************************************************/ var obj = { constructor ( a, b ) { }, get id ( ) { return this.id; }, set id ( id ) { this.id = id; }, * gen ( ) { }, fn ( ) { }, ["fn2"] ( ) { }, method: function ( ) { }, "method2": function ( ) { } };