Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 19, 2022 10:51 am GMT

Data Types (JavaScript)

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"


Original Link: https://dev.to/hardikmirg/data-types-javascript-2gfm

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To