Printing the maximum average score and names of students having this maximum average score as per the order in the file .
for ( let i = 0 ; i < names . length ; i ++ ) { document . write ( names [ i ] + " " ) ; } document . write ( maxAvgScore ) ; }