Print elements of both the sets .
document . write ( " " ) ; for ( i = 0 ; i < set1 . length ; i ++ ) document . write ( set1 [ i ] + " " ) ; document . write ( " " ) ; for ( i = 0 ; i < set2 . length ; i ++ ) document . write ( set2 [ i ] + " " ) ; }