Fetching http request by xml in javascript

Please i need help. I am a beginner in javascript. I saw this example by w3schools about fetching http request in javascript. Please can i get a deeper explanation from this code of lines. Line by line please. Im confused