Bird
0
0

Why does Angular require TypeScript instead of plain JavaScript?

easy📝 Conceptual Q11 of 15
Angular - TypeScript in Angular
Why does Angular require TypeScript instead of plain JavaScript?
ABecause TypeScript adds type safety and helps catch errors early
BBecause JavaScript cannot run in browsers
CBecause TypeScript is faster to write than JavaScript
DBecause Angular only supports Microsoft products
Step-by-Step Solution
Solution:
  1. Step 1: Understand Angular's need for error checking

    Angular apps are complex and benefit from early error detection to avoid runtime bugs.
  2. Step 2: Recognize TypeScript's role

    TypeScript adds type safety and static checks that JavaScript alone does not provide.
  3. Final Answer:

    Because TypeScript adds type safety and helps catch errors early -> Option A
  4. Quick Check:

    Type safety = A [OK]
Quick Trick: TypeScript catches errors before running code [OK]
Common Mistakes:
  • Thinking JavaScript can't run in browsers
  • Believing TypeScript is just faster to write
  • Assuming Angular only supports Microsoft tech

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes