How to create a list in javascript
<p>Javascript can read the list using for loop.
e.g</p>

<pre><code> [WebMethod]
    public static List&lt;EmpName&gt; GetData(int startIndex, int maximumRows, string sort, string filter)
    {
        var emp = objClient.GetData(startIndex, maximumRows, sort, filter);
        List&lt;EmpName&gt; lstEmp = new List&lt;EmpName&gt;();
        foreach (var item in emp)
        {
            EmpName objEmp = new EmpName();
            objEmp.ID = item.ID;
            objEmp.Name = item.Name;
            lstEmp.Add(objEmp);
        }
        return lstEmp;
    }

Javascript:
function ReadList(lstEmp)
{
     for(var i=0;i&lt;lstEmp.length;i++)
     {
          alert(lstEmp[i].ID+" "+ lstEmp[i].Name);
     }
}
</code></pre>

<p>I want to create a list in javascript i.e List to perform various operation at client side how it can be achieved?</p>
