Quiz About Union Types

Test your knowledge of union types.

1

Why are union types useful?

A)

They enable returning multiple types from a union of types.

B)

They enable returning one type from a union of types.

C)

They enable returning one of multiple types.

D)

B and C

Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.