Category: TypeScript
Basic TypeScript
TypeScript could sign variables with different type, and after sign the type, you couldn’t assign other type of value to this variable, or errors will pop up. Syntax: let test: string, if you assign number to this variable, it will be errors. type of variable: :string, :number, :array<string>, :boolean, :any sometimes, TypeScript could infer the