March 19, 2022 10:51 am GMT
Original Link: https://dev.to/hardikmirg/data-types-javascript-2gfm
Data Types (JavaScript)
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"
Original Link: https://dev.to/hardikmirg/data-types-javascript-2gfm
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To