Quizzes

TypeScript quizzes

Choose a quiz and test your understanding of a focused concept.

Angular Reactive Forms Quiz: Fix 'Can't bind to formGroup' Error

Test your understanding of Angular reactive forms, ReactiveFormsModule, formGroup, and formControlName fixes.

Fix Angular TypeScript 'Property Has No Initializer' Errors Quiz

Test your understanding of strict property initialization in Angular TypeScript components and the safest ways to handle async arrays.

Fix TypeScript 'Could not find a declaration file for module' Quiz

Test your understanding of why TypeScript needs `types` in package.json and how to correctly publish typed packages.

How to Add a Custom Property to window in TypeScript Quiz

Test your knowledge of adding custom properties to window in TypeScript using Window interface augmentation safely.

Interfaces vs Type Aliases in TypeScript Quiz

Test your understanding of TypeScript interfaces vs type aliases, including merging, unions, tuples, extension, and real-world usage.

JSX.Element vs ReactNode vs ReactElement in React TypeScript Quiz

Test your understanding of JSX.Element, ReactNode, and ReactElement in React TypeScript, including null returns and children typing.

TypeScript Getters and Setters Quiz: Correct get/set Syntax and Usage

Test your understanding of TypeScript getters and setters, including syntax, validation, common mistakes, and property-style usage.

TypeScript Non-Null Assertion Operator (!) Quiz

Test your understanding of TypeScript’s non-null assertion operator, type checking, runtime behavior, safe alternatives, and common mistakes.

TypeScript String to Number Conversion Quiz

Test your understanding of converting strings to numbers in TypeScript using Number(), unary plus, parseInt(), parseFloat(), and NaN checks.

What Is TypeScript and Why Use It Instead of JavaScript? Quiz

Test your understanding of TypeScript, static typing, type inference, interfaces, and why it helps beyond plain JavaScript.