how to print elements in an array in js code example Example: how to print an array javascript var array[] print(array[])