arrays in js

the program gives a demo of single and multidimensional arrays in
javascript with respect to creating, storing, accessing an displaying
the array.