DEV Community

Tejkumar Kempaiah
Tejkumar Kempaiah

Posted on

πŸ”₯ Datatypes in JavaScript

β˜‘οΈ What are Datatypes ?

It defines the category for data which will be stored in a variable

β˜‘οΈ Types of Datatypes ?

a. Primitive
b. Object/Reference

β˜‘οΈ Primitive Datatypes ?

The datatypes which hold only single value at a time is called Primitive Datatype

Example: number, Boolean, character, String, null, undefined

image

β˜‘οΈ Object/Reference Datatypes ?

The non-primitive datatypes are called object based/reference data types

Ex: Arrays, Objects itself.

image

Top comments (0)