Basic Types

TypeScript adds several data types on top of JavaScript's data types: - boolean - number - string - array - tuple - enum - any - void - null and undefined - never - object

                
  // Boolean
  let isDone: boolean = false; // "is assigned the value of"
  // isDone is a variable annotated with the boolean data type and assigned the value false.

  // Number
  let myNumber: number = 69;
  // myNumber is a variable annotated with the number data type and assigned the value 69.

  // String
  let myName: string = "Matthew";
  // myName is a variable annotated with the string data type and assigned the value "Matthew".