Articles → JavaScript → Data Types In Javascript

Data Types In Javascript









  1. Numbers
  2. Strings
  3. Booleans
  4. Objects
  5. Arrays
  6. Null
  7. Undefined

Numbers




var x = 2;
var y = 1.3;



Strings




var name = "gyan";



Booleans




var status = true;



Objects




  1. Has properties like name, age etc. (in humans).
  2. Performs actions like eat, move, sleep etc. (in humans).


var obj = {};



Arrays




var array = [1, "test", 3];





Null




var x = null;



Undefined




var x;
alert(x);





Posted By  -  Karan Gupta
 
Posted On  -  Sunday, January 15, 2017

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250