TypeScript is an actively used programming language created in 2012. TypeScript is a free and open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript, and adds optional static typing to the language. Anders Hejlsberg, lead architect of C# and creator of Delphi and Turbo Pascal, has worked on the development of TypeScript. Read more on Wikipedia...

7Years Old 525Users 974Jobs

Example code from the Hello World Collection:

// Hello world in TypeScript

alert('Hello world!');

Example code from Linguist:

console.log("Hello, World!");

Example code from Wikipedia:

class Person {
    private name: string;
    private age: number;
    private salary: number;

    constructor(name: string, age: number, salary: number) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    toString(): string {
        return `${this.name} (${this.age}) (${this.salary})`; // As of version 1.4
    }
}

Last updated August 22nd, 2019