ARRAY example with document.write