Posts > TS Basic: Intro
June 9, 2023
Typescript is a tool that provides type-checking before you run your code. Javascript provides dynamic typing running the code to see what happens. TS predicts what code is expected before it runs.
string
, number
, or object
)function
is non-existent it’ll inform you right away before running your codetype
it should be used instead of just throwing a undefined
undefined
- instead of throwing it to you undefined
TS will tell you the property does not exist and tell you the available property of the object global
npm install -g typescript
module level
npm install typescript
👌Bawas sa pagcheck sa console at browser kung may mali ba code mo.