var array = [1,2,3]
for(var i = 0; i < array.length ; i++){
console.log(array[i])
}
const arr = [1, 2, 3, 4, 5];
console.table(arr);
// Array of primitives:
int[] intArray = new int[] {1, 2, 3, 4, 5};
//output: [1, 2, 3, 4, 5]
// Array of object references:
String[] strArray = new String[] {"John", "Mary", "Bob"};
//output: [John, Mary, Bob]