Typescript Quiz Preparation Part 2

Welcome to your Typescript Quiz Preparation Part 2

Name
Email
Which keyword is used to declare a module as an ECMAScript module in TypeScript?

How do you declare a variable status that can only be assigned values 'success' or 'error' in TypeScript?

In TypeScript, what happens if you try to assign a value that is not part of a union literal type?

How can you create a union type Direction that represents only 'left', 'right', or 'center' in TypeScript?

Which method from the Inquirer library is used to prompt the user for input in a TypeScript application?

How do you install any library in a TypeScript project using npm?

In ECMAScript modules, how can you import a default export from another module?

What is a benefit of using TypeScript's export = syntax for module exports?

What is the purpose of using union literals in TypeScript?

How can you import and use named exports sum and multiply from an ECMAScript module in TypeScript?

This Post Has 11 Comments

  1. Alishan

    Great Sir In both Quiz Performed Well Your Questions And The Way You teach us and make us understand great

  2. Fatima

    Thanks

  3. fatima

    Jazak Allah Sir!

  4. Hajra Gul

    JazakAllah sir

  5. Nada Sheikh

    Jazakiallah kheer sir

  6. razzaq

    it is great

  7. bilal

    thanks sir

  8. Amber

    Great Sir

  9. Urooj Tahir

    Thanks

  10. farry

    great

Leave a Reply