04/02/2026
Day 3/90 of revisiting Javascript.
Today learnt about Data Types
Data types help the program understand the kind of data it's working with, whether it's a number, text, or something else.
There are several data types in JavaScript:
- Number: Reps both integers and floating-point values eg 1, 2,20.
- Floating point: Number with a decimal point eg 3.14
- String: Sequence of characters or text enclosed in quotes eg "I am a developer."
- Boolean: Reps one of two possible values: true or false
- Undefined and Null: undefined value is a variable that has been declared but not assigned a value. A null value is an empty value
- Object: Collection of key-value pairs. Key is the property name and value is the property value
- Symbol: Is a unique & Immutable value. May be used as an identifier for object properties.
- BigInt: Can be used to rep integers of arbitrary length