title: error TS1005: ';' expected
body: <pre><code>class Car {
      engineName: string;
      gears: number;
      private speed: number;
  
      constructor(speed: number) {
          this.speed = speed || 0;
      }
  
      accelerate(): void {
          this.speed++;
      }
  
      throttle():void {
          this.speed--;
      }
  
      getSpeed():void {
          console.log(this.speed);
      }
  
      static numberOfWheels(): number {
          return 4;
      }
  }
  
  
  // Instantiate (create) an object from a class
  
  let car = new Car(5);
  </code></pre>
  
  <p>Compiling this Type Script code within Visual Studio Code 1.18.1
  On the last statement, I get the error message.
  <strong>"error TS1005: ';' expected"</strong></p>
  
  <p>Why? "let car = new Car(5);" should be a correct TS statement.</p>
  
  <p>The "TSC -V" command renders: "Version 1.0.3.0"
  "npm view typescript version" renders: 2.6.2</p>