 Hi, let's talk about union types in TypeScript. In TypeScript you can declare a variable that can have any type. For example, let's define variable which we're going to call my variable and our variable is going to have any type. So that means that we could assign any value to this variable. So for example, we could assign to our variable number value or we could assign to our variable a string, okay, let's say hello. For we could assign let's say a Boolean type. But TypeScript also allows us to declare union types. Union types allows us to declare a variable that is able to store a value of two or more types. So with any, we could declare a variable to store any type of value, but with union types we could declare a variable to store just few types of values inside it. For example, if we want for our variable to store just number and strings, we do not want anymore to use this variable with any type we're going to define for our my variable variable that it can contain numbers or that it can contain that it can contain a string. We use the vertical bar to separate each type. So number, vertical bar string is the type of a value that can be a number or a string, okay. So now we will have problem right here because our variable my variable can be assigned with Boolean type. It can be assigned just with any number or any string, but we could not assign Boolean type or any other type which is not number or a string. That's all in this video. Thanks for watching. Please like this video, comment it, share it and please subscribe to my channel. See you in the next video.