In this tutorial, we will learn about Data Types in JavaScript. The data type of a variable simply tells us what kind of data that variable can store and how much size of data it can hold. Java Script provides us with a variety of Data Types we will learn about these data types.
Page Contents
Primitive data types:
Data Type | Description |
---|---|
String | Represents a sequence of characters e.g. “hello” |
Number | Represents numeric values e.g. 100 |
Boolean | Represents boolean value either false or true |
Undefined | Represents undefined value |
Null | Represents null i.e. no value at all |
Non-primitive data types:
Data Type | Description |
---|---|
Object | Represents instance through which we can access members |
Array | Represents a group of similar values |
RegExp | Represents regular expression |

Parvesh Sandila is a passionate web and Mobile app developer from Jalandhar, Punjab, who has over six years of experience. Holding a Master’s degree in Computer Applications (2017), he has also mentored over 100 students in coding. In 2019, Parvesh founded Owlbuddy.com, a platform that provides free, high-quality programming tutorials in languages like Java, Python, Kotlin, PHP, and Android. His mission is to make tech education accessible to all aspiring developers.​