Welcome back. In JavaScript, there are basically five types of primitive data that can be used in our programs. The first one is strings. So to specify a string in JavaScript, type four, and then, for example, name equals to double quotes, and you type the string inside these quotes, for example, john. So this is the first time. The second one is called integers, or doubles or floats, meaning that an integer just a number and doubles a number with decimal values.
So to specify an integer in JavaScript, you just type var, and then the name of the variable. For example, the height of the person equals to 180 centimeters. And you can also add points point five. So this is how you specify integers in, in JavaScript. The third type of data is called Boolean. So for example, you can type var, and then is man.
And this can be true or false. For example, we want to make, we want to check that person's gender. So we could say True, true for if that person is a man, or false, if that person is not a man or a man, and he or she is a woman. The third type of data primitive data in JavaScript is called undefined. And this case when you create a variable, but you do not give it a value. So for example, we have our address and the value has not been given to this variable.
So in that case, this is going to be undefined Or you could just make make it equals two on the Find. Both are true. The last us primitive data type in JavaScript is called No. and No happens when there are choices, but the user hasn't choosing one. So for example, var car and there are three types of cars, but the user has not choosing any one of them. So in that case, this is going to be no.
So these are the five basic primitive data types in JavaScript.