var intNum=10; //Number variable declared with integers values
var floatNum=10.7; //Number variable declared with decimal values
var negativeNum=-13; //Number variable declared with negative integers values
String is nothing more than a sequence of characters. String variables are declared to store a string data type which may be some characters, letters, words, any number, white spaces, special symbols, or anything you like to put in between two double quotes("") or single quotes (”).
var empName="Ramakant"; //String variable declared
var empAddress="9th Floor, Green Heritage, Navi Mumbai, 410210";
var empSystem="P4 2Ghz, 4GB RAM, WinXP";
var empAddress="9th Floor,\tGreen Heritage,\nNavi Mumbai,\t410210";
|Output Character||Code to Use|
|Double quote (")||\"|
|Single quote (‘)||\’|
Null means "nothing" or without value or consequence. It is not a white space, nor is it a zero; it simply represent nothing.