As a javascript learner you should have proper knowledge about values. After Almost twenty five yeas of studying JavaScript, the scientists have only discovered nine such type of values , that you should remember always.
There are two type of values
- Primitive Values
- Objects And Functions
Primitive Values:
● Undefined (undefined), used for unintentionally missing values.
● Null (null), used for intentionally missing values.
● Booleans (true and false), used for logical operations.
● Numbers (-100, 3.14, and others), used for math calculations.
● Strings ("hello", "abracadabra", and others), used for text.
● Symbols (uncommon), used to hide implementation details.
● BigInts (uncommon and new), used for math on big numbers.
Objects And Functions:
● Objects ({} and others), used to group related data and code.
● Functions (x => x * 2 and others), used to refer to code.
thank you for reading.
happy coading(.)
Top comments (0)