Typescript and Javascript
TypeScript:
- TypeScript is a strongly type programming language build on JavaScript.
- TypeScript can internally convert to JavaScript.
- TypeScript is a superset of JavaScript and it may be used to develop by JavaScript applications for both client-side and server-side
- It can catch errors on the Spot during the design time and also it gives better scale(class and function) and productivity.
- TypeScript can be maintain and developed by Microsoft .
How different it from JavaScript:
- TypeScript is a superset of JavaScript where JavaScript is a Scripting language which helps to create interactive web pages
- TypeScript need to compile while JavaScript code doesn't need to compile
- compare TypeScript and JS, TypeScript supports a features of prototyping while JavaScript doesn't support this features.
Data type Of TypeScript:
- TypeScript have only 3 data types they are Number ,String and Boolean .
- TypeScript can build by JavaScript and JavaScript only have 3 datatype
- TypeScript can define 1st variable then datatype
What does it mean that TypeScript is strongly typed:
- TypeScript is strongly typed means that when the user Designing the code at that time user did any mistake then on the spot typescript can catch the errors.it will not wait to compile the code and then show the error .
- it can catch error during Design time.
How is OOP different from functional programming :
- OOP give importance to data than functions but Functional give importance to function.
- OOP always use loop for iteration & Functional always use recursion for iteration.
- OOP does not support parallel programming but Functional support parallel programming.
- OOP follows Imperative Programming Model but Functional support Declarative Programing Model
Thanks and Regards
Mr. Deepak Singh
Comments
Post a Comment