JSFiddle - React, Tailwind, and code Playground

by brigand

JavaScript

const returnsPair = () => {
  return [100, 200];
}

class C {
  constructor() {
    [this.a, this.b] = returnsPair();
    console.log(this)
  }
}


new C();