array in javascript array is the collection of heterogeneous data types java script is a loosely type language that why we can store any type value in an array in java script array is object it is providing number of methods &properties array we are creating useing new key word the syntax is array= new array(10,20,30) array is a combination of elements .each element contains the name and values .this key of 1st element starts from 0(zero) last element end with n-1 <script> function fun1() { arr=newarray(10,new,php,java) alert(arr[]); } </script> <input type="button" value="value" onclick ="fun1()"> </body>