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?
let person = { name: string, address: { street: string, city: string } };
let person: { name: string, address: { street: string, city: string } };
et person = { name: 'John', address: { street: 'Main St', city: 'New York' } };
let person: { name: string, address: { street: string, city: string } } = { name: 'John', address: { street: 'Main St', city: 'New York' } };
How do you define an object literal car with properties make (string) and year (number) in TypeScript?
What is the advantage of structural typing in TypeScript?
What is structural typing in TypeScript?
How do you access the street property of the address object within the person object in TypeScript?
How do you access the name property of an object person in TypeScript?
How do you define an object type with properties name (string) and age (number) in TypeScript?
How do you declare an object type Car with properties make (string) and model (string)?
What is the purpose of using type aliases in TypeScript?
..
Thank you sir for your kind effort for us
helpful for anual quiz preparation
Great efforts to you sir for beginners
Thanks for the kind efforts 👍🏿
Thank YoU Sir
Thank you sir for your kind efforts
I think the options are very similar and confusing like if I select option A but Option B and C also has same meanings I think that’s the point where you need to improve your quizzes . BTW you have done a fabulous job. Love and Respect for you . Thanks for your efforts
Bohat Shukriya Sir 👌
Thank you sir for making this helpful quiz
great effort
Thanks, Ninja Learners
Thanks, Ninja Learners!!!