This content originally appeared on DEV Community and was authored by Hardik Mirg
Data Types in JavaScript
- Primitive Data Types
- Non-Primitive Data Types
Primitive Data Types
- Integer: 1, 2, 3 etc.
- String: "Hello World" etc.
- Boolean: True/False.
- Null: Used to depict no value.
- Undefined: Variables with no defined value.
Non-Primitive Data Types
Object: Instance of key-value pairs; Similar to JSON; Contained within curly braces {}.
Array: A group of variables of any Data Types contained together within brackets []; Similar to lists in Python.
RegExp: Refers to "Regular Expression"
This content originally appeared on DEV Community and was authored by Hardik Mirg
Hardik Mirg | Sciencx (2022-03-19T10:51:51+00:00) Data Types (JavaScript). Retrieved from https://www.scien.cx/2022/03/19/data-types-javascript/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.