Skip to content

typescript

Javascript with extensions.

javascript is a subset of typescript and will this pass the typescript compiler c

In depth and complete (4-8 hrs) : visit

Also in depth but a nice ordering (1 hr) : visit Very terse cheatsheet, quick res-scan(15 minutes) : visit

basic types

typescript

  • boolean: true or false

classes

constructors

constructors
1
2
3
4
5
6
7
class TestClass {
    private name: string;

    constructor(name: string) {
        this.name = name;
    }
}

Is equivalent to:

javascript
1
2
3
class TestClass {
    constructor(private name: string) { }
}

It is now even an error to add the member separately.