<html> <head> <title>Array Demo</title> <script> var a =new Array("C","C++","Java","VB"); document.write("Length of Array =" + a.length); </script> </head> <body> </body> </html>
Length of Array =4