Run
<script> var array = [5 , 60, 1, 56, 24, 6, 9, 38]; var largest=array[0]; var size=array.length; for(i=1;i<size;i++) { if(array[i]>largest) largest=array[i]; } document.write(largest+" is Largest number in an array"); </script>