Object-oriented programming languages are based on objects whereas scripting languages are made up of scripts to automate any function/action.
Scripting languages don't need a compilation step and mostly get interpreted.
TypeScript gives the option for static typing, the type of a variable is declared while writing the code. For example
let name_ = "TypeScript"; console.log("name variable is infered as string",name_); name_=45; // throw error "Type 'number' is not assignable to type 'string' "
- When a language is not statically typed, it is more prone to errors in runtime.
- Being an object-oriented programming language TypeScript s supports OOPs concepts like interfaces, classes, inheritances, generics, etc.
TypeScript is getting popular and adopted by the Industry giants.
That's it for now, thank you for reading.