how to use console.log to print an item in an array javascript code example Example: how to console log array in javascript console.log(arrayName);