TypeScript provides an optional type system for JavaScript to enhance code quality and understandability and compile it into JavaScript. JavaScript is what you are currently going to execute.

Source Code - GitHub

code samples from the author that can be compiled. Samples that need additional steps to build will be presented in the following pages.

Introduction

General Introduction to TypeScript

Confusing features of JavaScript

Equality

Reference

Null and Undefined

this

Closure

Number

Truthy

JavaScript New Feature

Arrow Functions

Rest Parameters

Destructuring - 解构赋值