Table of Contents
var myName = “Rudra”;
Here myName has the value undefined.
|Number||A numeric digit that is represented without any quote around them.||var myMarks = 90;|
|String||It is a collection of characters. It is represented with quote marks.||var myName = “Rudramani Pandey”;|
|Boolean||It is true/false value and is written without quotes. It is often used as a flag: to represent if an action is done or not.||var myHoliday = true;|
|Array||It is a structure that allows to store multiple values into a single variable. It is represented by
[ ]. It is a list and the position of its items lies between 0 to n.
var employee = new Object();
employee.name = “Rudra”;
employee.age = 25;