The output of the code above will be:

Peter Griffin
Glenn Quagmire

W3SCHOOLS WINS!!!!