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 defi…


This content originally appeared on DEV Community and was authored by Hardik Mirg

Data Types in JavaScript

  1. Primitive Data Types
  2. 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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Data Types (JavaScript)." Hardik Mirg | Sciencx - Saturday March 19, 2022, https://www.scien.cx/2022/03/19/data-types-javascript/
HARVARD
Hardik Mirg | Sciencx Saturday March 19, 2022 » Data Types (JavaScript)., viewed ,<https://www.scien.cx/2022/03/19/data-types-javascript/>
VANCOUVER
Hardik Mirg | Sciencx - » Data Types (JavaScript). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/03/19/data-types-javascript/
CHICAGO
" » Data Types (JavaScript)." Hardik Mirg | Sciencx - Accessed . https://www.scien.cx/2022/03/19/data-types-javascript/
IEEE
" » Data Types (JavaScript)." Hardik Mirg | Sciencx [Online]. Available: https://www.scien.cx/2022/03/19/data-types-javascript/. [Accessed: ]
rf:citation
» Data Types (JavaScript) | Hardik Mirg | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.