Q: TypeScript is __________.
-
A
Procedural
-
B
Object Oriented
-
C
Functional
-
D
Symbolic
B
Answer:
B
Explanation:
TypeScript is Object-Oriented.
While TypeScript does support procedural and functional programming styles, its primary design focus is on providing features and capabilities that enhance object-oriented programming (OOP). TypeScript introduces concepts such as classes, interfaces, inheritance, and other object-oriented features to JavaScript, making it easier for developers to organize and structure their code in an object-oriented manner.
So, the most accurate classification for TypeScript is Object-Oriented, although it also incorporates elements from procedural and functional programming paradigms.
Related Topic:
Share Above MCQ