Skip to content

coddzz/typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript

TypeScript = JavaScript + Types

~ It’s a superset of JavaScript. ~ Adds static typing (type checking before running). ~ Compiles to JavaScript (browser/Node can run it).

Why Type Checking is Important?

~ (Many common JS bugs are avoided before deployment.) ~ Finds bugs early ~ Makes code predictable ~ Better autocomplete & docs ~ Easier teamwork ~ Prevents runtime crashes

setup config file

npx tsc --init npm install ts-node

run a TypeScript file directly using:

npx ts-node

tsc # compile to test.js node # run JS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published