DEV Community

jC-blip-ux
jC-blip-ux

Posted on • Updated on

JavaScript and its DataTypes

JavaScript has data types to hold different types of values. And the two types of data types in JavaScript are:

Primitive data type
Non-primitive (reference) data type

JavaScript is a dynamic type language, means you don't need to specify type of the variable because it is dynamically(accepting in real-time) used by JavaScript engine. We need to use var here to specify the data type. It can hold any type of values such as numbers, strings etc.
For example:
var a=80; //holds the number

var b="Sam";//holds the string

The five type available are:
tring
number
boolean
undefined
null

Top comments (1)

Collapse
 
bigwebdev profile image
big-webdev

Hello to the community.
This is one of the worst articles I've read here.

I don't think, that your tags matches anything of your text except "Javascript".

I really like new contributer at this site, but please ask yourself before publishing, "does this text contains informations, which will have a benefit for the people who read it?"

And check your text for typos.