console.log(
(x = {
a: 10,
b: () => this.a,
c: function() {
return this.a;
},
}) && x.b(),
x.c(),
(bb = x.b) && bb(),
(cc = x.c) && cc()
);
output:
undefined 10 undefined undefined
console.log(
(x = {
a: 10,
b: () => this.a,
c: function() {
return this.a;
},
}) && x.b(),
x.c(),
(bb = x.b) && bb(),
(cc = x.c) && cc()
);
output:
undefined 10 undefined undefined