TypeScript Tutorial 2

this type Case: let input: HTMLInputElement; input.addEventListener('change', function(evt) { console.log(this.value); // OK console.log(this.naturalWidth); // Error }); let img: HTMLImageElement; img.addEventListener( »

Typescript Tutorial

Basic Types Boolean let isDone: boolean = false; Number let six: number = 6; let hex: number = 0xff; let binary: number = 0b1010; let octal: number = 0o74; String let »