Member-only story
Data types in Javascript
To be a successful Front Developer, one has to have strong foundation of Javascript. This series attempts to cover all the important concepts of the language.
By the way, I have an Instagram Reel and Youtube Short on this Article, if you guys prefer that, please click here: Data types — Insta Reel , Data types — Youtube Short.
Programming languages all have built-in data structures, however these often differ from one language to another. This article describes both Primitive and Non-Primitive data types in Javascript.
Primitive Data Type
In Javascript, primitive type is predefined by the language and it is data that is not an object and has methods or properties. There are 7 primitive types in Javascript.
- string
- number
- undefined
- BigInt
- Boolean
- Symbol
- null
Lets have a deeper look into the datatypes.
- string — A
string
is a sequence of one or more characters that may consist of letters, numbers, or symbols and this object is wrapped around a string primitive.