Articles → JavaScript → Data types in JavaScript
























Numbers




var x = 2;
var y = 1.3;



Strings




var name = "gyan";



Booleans




var status = true;



Objects










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