Do you understand the union type in TypeScript? Do you know when to use the union type in TypeScript? and how to use it? This is a short video to help you understand the concept of the union type and exercises to test your knowledge.
Answer to EX.1:
C
Answer to EX.2:
animal.ANIMAL_TYPE === 'DOG'
#typescript #typescripttutorial #typescriptunion #uniontype #typescript_exercise
コメント