javascript array

Javascript array declare in square brackets and array ithem are seperated by commas


Here is Example of array in javascript

<p id="test"> </p>

<script>
var car=["honda","maruti","tata"];
getElementById("test").innerHTML=car[0];

</script>

0utput will get honda..