Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Day 1

  1. TypeScript is an object oriented programming language that is built on top of JavaScript with extra features.
  2. JavaScript is extended to TypeScript
  3. As JavaScript is dynamically typed, the type checking becomes a hassle when working on a big-scale project that requires validation quite often as a result TypeScript is a wise choice to use.
  4. The errors involved with type checking will not be shown if the project is coded in JavaScript as JavaScript informs about errors in runtime rather than in compiled time.
  5. JavaScript does not support OOP. JavaScript uses OOP with the help of syntactic sugar.
  6. Typescript is transpiled to JavaScript and the interesting fact is a developer can choose which version of JS (ES3, ES5, ES6) the TypeScript should be converted to.
  7. Browser cannot run TypeScript
  8. TypeScript can use JavaScript types like number, string, boolean,null, undefined, object and symbol
  9. TypeScript has its own types like Interface, Void, Array, Tuple, Enum , Union and Intersection
  10. Increase productivity by giving suggestions what you have used like the types and number of parameters when using a code of a different file
  11. Takes less time in testing as bugs are easy to find and also few bugs will be available
  12. Type complexities like a small code will also needs it types to be mentioned
  13. Limited Library Support, Over Engineering and Migration Challenges
  14. NVM means node version manager

Day 2

  1. To allow node to run TypeScript you need the TypeScript compiler to compile the code into JavaScript
  2. Write tsc filename.ts
  3. You won't ge typescript types on runtime because the code will be compiled to JavaScript
  4. With TypeScript types we get help for not making mistakes
  5. Tuple is kind of like an array where the order of type of value can be defined
  6. To keep a value fixed,the value needs to be used as a type. This is called literal. With ? means the object property may exist.
  7. With readonly, you cannot overrride an object property.
  8. Functions in objects are called methods

Day 3

  1. TypeScript globally access all the variables so if you write same variable name in another file it will show error. To avoid that, write all the code in {}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages