Quiz: Classes in TypeScript

Test your understanding of classes in TypeScript.

Classes in TypeScript

1

How can you declare a constructor in a TypeScript class?

A)

By using the construct keyword.

B)

By using the constructor keyword.

C)

By using the var-constructor keyword.

D)

By using the constructfunction keyword.

Question 1 of 40 attempted

Get hands-on with 1400+ tech skills courses.