|
|
|
@ -63,6 +63,7 @@ Primitive data types in JavaScript include:
|
|
|
|
|
4. Null - empty value or no value
|
|
|
|
|
5. Undefined - a declared variable without a value
|
|
|
|
|
6. Symbol - A unique value that can be generated by Symbol constructor
|
|
|
|
|
7. BigInt - represent numeric values which are too large to be represented by the number
|
|
|
|
|
|
|
|
|
|
Non-primitive data types in JavaScript includes:
|
|
|
|
|
|
|
|
|
@ -176,7 +177,7 @@ const PI = 3.14 // pi a geometrical constant
|
|
|
|
|
|
|
|
|
|
// More Examples
|
|
|
|
|
const boilingPoint = 100 // temperature in oC, boiling point of water which is a constant
|
|
|
|
|
const bodyTemp = 37 // oC average human body temperature, which is a constant
|
|
|
|
|
const bodyTemp = 37 // oC average human body temperature, which is not constant
|
|
|
|
|
|
|
|
|
|
console.log(age, gravity, mass, PI, boilingPoint, bodyTemp)
|
|
|
|
|
```
|
|
|
|
|