Data Types - Javascript

Primitive Data types

String : Sequences of characters , letters etc.

Number : Integers , Decimals, Floats

Boolean : true , false

Null : empty value

Undefined : variable where we have not assigned a value

Symbols (ES6) : We will discuss about symbols later when we get into ES6

Reference data Types


Object Literals



Anything  else that can be stored in a variable


Javascript is a dynamically typed language

1. DtataTypes are associated with values not variables

2. Same variable can hold multiple data types

3. While declaring variable you need not to specify data types

4. Some flavours/addons of javascript allow static typing like TypeScript, Flow