There are 7 primitive data types: Number, String, BigInt, Boolean, Null, Undefined and Symbol.
We are going to do a quick overview of all.
The next data type that we have are strings. Strings are basically text. The important thing is that they are inside quotes. As we can
see in the example we have Hello World inside a quote. That is one string, even though is multiple words. Same as the second
example, we have a number 45 but inside quotes so its actually considered a string.
Booleans have only two options, they are ether true or false. There is no quotes no numbers just the word true or the word false.
1>2 (one is bigger than two) // false
1<2 (one is smaller than two) // true
// Null and Undefined
Null: This data type represents the intentional absence of a value, and is represented by the keyword null (without quotes).
Undefined: This data type is denoted by the keyword undefined (without quotes). It also represents the absence of a value though it has a different use than null. For example if we declare a variable (var age;) but not initialize to a value it is consider undifined.
const mySymbol = Symbol ( ‘mySymbol’ ) ;
Every time you call the factory function, a new and unique symbol is created.