07 November 2020

#TypeScript

#TypeScript
What are Ambients in TypeScripts and when to use them?
What are different components of TypeScript?
What are Modules in Typescript?
What are the benefits of TypeScript?
What are the difference beetween Typescript and JavaScript?
What is "Decorators" in TypeScript?
What is a TypeScript Map file?
What is getters/setters in TypeScript?
What is Interface in TypeScript?
What is one thing you would change about TypeScript?
What is the default access modifier for members of a class in TypeScript?
What is the difference between "interface vs type" statements?
What is the difference between Classes and Interfaces in Typescript?
What is TypeScript and why do we need it?
What is Typescript and why one should use it?
What is TypeScript and why would I use it in place of JavaScript?
What is Typings in Typescript?
Explain generics in TypeScript
Explain how and why we could use property decorators in TS?
Explain when to use "declare" keyword in TypeScript
Explain why that code is marked as WRONG?
Which object oriented terms are supported by TypeScript?
How can you allow classes defined in a module to accessible outside of the module?
How could you check null and undefined in TypeScript?
How to call base class constructor from child class in TypeScript?
How to implement class constants in TypeScript?
How To Use external plain JavaScript Libraries in TypeScript?
How TypeScript is optionally statically typed language?
How would you overload a class constructor in TypeScript?
When to use interfaces and when to use classes in TypeScript?
Are strongly-typed functions as parameters possible in TypeScript?
Could we use TypeScript on backend and how?
Do we need to compile TypeScript files and why?
Does TypeScript support all object oriented principles?
Does TypeScript supports function overloading?
Is it possible to generate TypeScript declaration files from JS library?
Is that TypeScript code valid? Explain why.
List the built-in types in Typescript
What's wrong with that code?
  • TypeScript - Types (string, number, boolean, etc.), Type Annotations (variables, function parameters, and return types)
  • TypeScript Compiler
  • Strict mode
  • Type Assignment - Explicit, Implicit
  • Special Types - Type: any , Type: unknown, Type: never, Type: undefined & null
  • Primitive types
  • Dynamic types & Literal types
  • Classes - Members: Types, Members: Visibility, Parameter Properties, Readonly
  • Inheritance - Inheritance: Implements, Inheritance: Extends, Override, Abstract Classes
  • Objects
  • Arrays - Readonly, Type Inference
  • Tuples - Typed Arrays, Readonly Tuple, Named Tuples, Destructuring Tuples
  • Object Types - Type Inference, Optional Properties, Index Signatures
  • Enums - Numeric Enums (With Default, With Initialized, Fully Initialized), String Enums
  • Functions - Return Type, Void Return Type, Parameters (Optional Parameters, Default Parameters, Named Parameters, Rest Parameters)
  • The DOM and type casting - Casting with as, Casting with <>, Force casting
  • Narrowing
  • Interfaces - Extending Interfaces
  • Type Aliases - Union | (OR), Union Type Errors
  • Union and Intersection Types
  • Type Inference
  • Type Assertions
  • Generics
  • Modules
  • Decorators
  • TypeScript Configuration
  • TypeScript Null & Undefined
  • Null - Optional Chaining, Nullish Coalescence, Null Assertion, Array bounds handling
  • Keyof - keyof with explicit keys, keyof with index signatures
TypeScript
Question Option A Option B Option C Option D
Which of the following is a correct way to declare a variable in TypeScript? let varName: type; var varName = type; let varName = type; varName: type;
What is the default access modifier in TypeScript? public private protected internal
Which of the following is used to specify the types of function parameters and return type in TypeScript? type() typeof() functionType() (): type

No comments:

Post a Comment

Most views on this month