title: how to define a static property in the ES6 classes
body: <p>I want to have a static property in an ES6 class. This property value is initially an empty array.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    class Game{
  
          constructor(){
             // this.cards = [];
          }
  
          static cards = [];
      }
      
      Game.cards.push(1);
  
      console.log(Game.cards);</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can I do it?</p>