-5

Is it possible to assign to two variables in one statement?

E.g.

this.edge = this.side = null;
Ole V.V.
  • 76,217
  • 14
  • 120
  • 142
Andreu Alcon
  • 208
  • 2
  • 12

1 Answers1

0

Adding one line will not cost you much, just use:

this.edge = null;
this.side = null;
Jesse
  • 3,334
  • 6
  • 25
  • 38