javascript how to print a whole array to console code example Example: console log all array values node console.dir(myArry, {'maxArrayLength': null});