Data Types
In the previous lecture we mentioned that we can store values in variables. And that these values need to be in the form of one of the predefined data types. The concept of a value is somewhat abstract, especially to someone doing programming for the first time. But we're going to go through it together, nothing to worry about! :)
As we mentioned, there are a few "types" of values, called data types. Let's go through them one by one, and then we're going to explain each one in detail.
We can separate data types of current JavaScript Standard in two groups:
Primitive Data Types:
- Numbers: 5, 6.5, 7 etc.
- String: “Hello everyone, I'm glad that you're here!” etc.
- Boolean: Represent a logical entity and can have two values: true or false.
- Null: This type has only one value : null.
- Undefined: A variable that has not been assigned a value is undefined.
- Symbol: used as an identifier for object properties.
Complex Data Types:
- Object: It is the most important data-type and forms the building blocks for modern JavaScript.
We will learn about these data types in details in further articles.