echo the whole array js code example Example: how to print an array javascript var array[] print(array[])