3

interactive

User can interact with the object even though it is not fully loaded.

4

complete

Object is completely initialized.

Line 9: We have another conditional statement to check if the readystate = 4 has been triggered; which means that the document loading is complete and ready to be used and also check that the status of the document is completed by asking whether status = 200. If this check is ok then the following statements are triggered.