Print both the arrays
document . write ( " " ) ; for ( var i = 0 ; i < A . length ; i ++ ) { document . write ( A [ i ] + " " ) ; } document . write ( " " ) ; document . write ( " " ) ; for ( var i = 0 ; i < B . length ; i ++ ) { document . write ( B [ i ] + " " ) ; } }