TypeScript is an open source programming language created in 2012 by Anders Hejlsberg.
git clone https://github.com/microsoft/TypeScript
#31on PLDB | 11Years Old | 3mRepos |
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...
console.log("Hello, world!");
console.log("Hello World");
// Hello world in TypeScript
alert('Hello world!');
console.log("Hello, World!");
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
}
}