how to console log an object in an array js code example Example: how to console log array in javascript console.log(arrayName);