Typescript Quiz Preparation Part 3

Welcome to your Typescript Quiz Preparation Part 3

Name
Email
How do you access the street property of the address object within the person object in TypeScript?

What is the purpose of using type aliases in TypeScript?

How do you access the name property of an object person in TypeScript?

How do you declare an object type Car with properties make (string) and model (string)?

Which of the following correctly defines a Person object with properties firstName (string) and lastName (string)?

How do you define a nested object person with properties name (string) and address (object with properties street and city) in TypeScript?

How do you define an object literal car with properties make (string) and year (number) in TypeScript?

How do you define an object type with properties name (string) and age (number) in TypeScript?

What is structural typing in TypeScript?

What is the advantage of structural typing in TypeScript?

This Post Has 6 Comments

  1. aqsa saeed

    ..

  2. Iqra naz

    Thank you sir for your kind effort for us

  3. farry

    helpful for anual quiz preparation

  4. Shabana

    Great efforts to you sir for beginners

  5. Shabana

    Thanks for the kind efforts 👍🏿

  6. Rahat Bano

    Thank you sir for your kind efforts

Leave a Reply