title: Typescript error TS1005: ';' expected but I don't see where I'm missing a semicolon
body: <p>I am trying to learn Typescript and I'm following the tutorial on this page: <a href="https://www.typescriptlang.org/docs/handbook/functions.html" rel="noreferrer">https://www.typescriptlang.org/docs/handbook/functions.html</a>. When I create a file cardPicker.ts and paste the following code, it won't compile. I get this error 5 times: Typescript error TS1005: ';' expected.  Lines 1,6,7,14 and 15. I don't see where a semicolon is missing, but maybe the error message means something else. I'm concerned about my version of ts, but I just installed that two weeks ago. When I do "tsc -version" it says 1.0.3.0</p>
  
  <pre><code>let deck = {
    suits: ["hearts", "spades", "clubs", "diamonds"],
    cards: Array(52),
    createCardPicker: function() {
       return function() {
           let pickedCard = Math.floor(Math.random() * 52);
           let pickedSuit = Math.floor(pickedCard / 13);
  
           return {suit: this.suits[pickedSuit], card: pickedCard % 13};
       }
    }
  }
  
  let cardPicker = deck.createCardPicker();
  let pickedCard = cardPicker();
  
  alert("card: " + pickedCard.card + " of " + pickedCard.suit);
  </code></pre>
  
  <p>I compile the project by running "tsc cardPicker.ts" in the command line.</p>