Quiz: Introduction to TypeScript

Test your understanding of the basics of TypeScript.

1

What will be the output of the following code?

const obj = {
 a: 3
};
obj.a = 4;
console.log(obj.a);

A)

0

B)

3

C)

4

D)

Compilation error

Question 1 of 100 attempted

Get hands-on with 1200+ tech skills courses.