how to console log all the elements that start with A in an array javascript code example Example: how to console log array in javascript console.log(arrayName);