Basics

Challenges

Classes

Cookies

Debugging

Events

External Files

Flow Control

Forms

Functions

Html Elements

Installation

Interfaces

Keywords

Modules

Namespaces

Operators

Reference Files

String

Types

TypeScript - TypeScript Features

JavaScript Characteristics

Good

  • Prototypical Inheritance instead of Classes
  • Not type-less but dynamically typed
  • Just In Time compiled
  • Variables can hold any object
  • Implicit type coercion (string to int, etc)

Bad

  • Difficult to ensure proper tests
  • Enterprise scale apps can have thousands of lines of code
  • Not everyone uses === for type comparisons
TypeScript Characteristics

TypeScript is Javascript. It is a superset of Javascript.

http://www.typescriptlang.org

Features

  • Supports standard javascript
  • Provides standard Typing (object types)
  • Has built in Type definitions of Javascript
  • Encapsulation through classes and Modules (also known as Naming Containers, Namespaces)
  • Constructors, properties, functions, etc.
  • Supports Interfaces (contract to objects)
  • Supports ‘lambdas’
  • Good IDE support
  • Follows ES6+ Syntax as much as possible