title: Syntax error in JavaScript Class
body: <p>I'm playing with a little something and here's the code I have so far</p>
  
  <pre><code>class Person {
  constructor(sex, name, age) {
      this.sex = sex || (
          for (var i = 0; i &lt; 1; i++) {
              let sexes = ['f', 'm'],
                  picker = Math.round(Math.random());
              picker === 1 ? this.sex = sexes[0] : this.sex = sexes[1];
          } );
      this.name = name || (
          let names = ["Jane Doe", "Jon Doe"];
          sex === 'f' ? this.name = names[0] : this.name = names[1]; );
      this.age = age || (
          let rand = Math.floor(Math.random() * (50 - 20 + 1) + 20);
          age = rand; ) ;
  } }//end class
  </code></pre>
  
  <p>I'm getting this following error and I'm not sure what to do about it =\ :</p>
  
  <pre><code>/Users/Username/Desktop/code/file.js:23
              for (var i = 0; i &lt; 1; i++) {
              ^^^
  SyntaxError: Unexpected token for
      at createScript (vm.js:74:10)
      at Object.runInThisContext (vm.js:116:10)
      at Module._compile (module.js:533:28)
      at Object.Module._extensions..js (module.js:580:10)
      at Module.load (module.js:503:32)
      at tryModuleLoad (module.js:466:12)
      at Function.Module._load (module.js:458:3)
      at Function.Module.runMain (module.js:605:10)
      at startup (bootstrap_node.js:158:16)
      at bootstrap_node.js:575:3
  </code></pre>