JavaScript Data Types

« Previous Tutorial Next Tutorial »

JavaScript allows many data types, in which these are the most commonly used data types in JavaScript:

You may follow the above links to learn in detail about these data types in JavaScript.

Here is the general form to declare data types in JavaScript.

var numb = 10;		// number
var myname = "datatypes";	// string
var myfriends = ["numbers", "objects", "strings", "arrays"];	// array

In the above declaration of data types in JavaScript, the first declaration declares a number data type, the second declares a string data type, and the third one declares an array data types.

« Previous Tutorial Next Tutorial »


Quick Links
Signup - Login - Give Online Test