What is the primary purpose of endnotes?

to provide information on a source used to create a document
to identify the sources on each page of a document in the form of links
to provide additional information that does not fit in the main body of the text
to mark a location in a document to make it easier to navigate to that location