This is another way to display all elements and if we give line break <br> as delimiter then all elements we can display vertically in any web page. We need not loop through by using length property.
We can directly display elements by using document.write or we can assign it to one string variable and then display.
var str=scripts.join(" : ");
Here is the complete code for displaying elements of an array using join