Category: TypeScript

0

Types - any, unknown, never

any The any type is the most flexible type specified in TS, and any basically ensures that the TS compiler cannot check anything. But any also takes away all the benefits brought by TS and should b

0

Types - Array, Tuple, Enum

TS support for arrays The array type is written as array name: data type in array[], such as hobbies: string[]. Using arrays inside and outside objects is exactly the same. Another way to write it

0

Types - primitive, object

Core Types Primitive types: number, string, boolean reference types: object, Array TS exclusive typs: Tuple, Enum, any Primitive types are written in TS as parameter: type, such as n1: number.

0

Typescript Introduction

What is TypeScript TS is a superset of JavaScript. TS takes JS and adds new features and syntax to it. TS cannot be executed directly in JS environment (such as browser, node.js). TS is a programmi