For declare variable in javascript we use var tag.

Example:

var x;

Numeric:

var x = 5;

Arithmetic:

var x = 4+1;

Fractional:

var x = 4.1;

String:

var x = "string";

Logical:

var x = false;

Arrays:

var x = new Array(1, "string", 5.3, false);