What does the XMLHttpRequest() class look like?

I found an answer from en.wikipedia.org
XMLHttpRequest - Wikipedia
XMLHttpRequest (XHR) is an API in the form of an object whose methods transfer data ... Despite the name, XHR can be used with protocols other than HTTP and data can be in ... Browsers have since implemented the alternative fetch() interface to achieve the same functionality as XHR using promises instead of callbacks.
For more information, see XMLHttpRequest - Wikipedia
I found an answer from stackoverflow.com
Why properties of an XMLHttpRequest object are only printable ...
May 24, 2018 ... class A {} A.prototype.someProperty = 10 const a = new A() // again if you try these you will get results like the XMLHttpRequest instance ...
For more information, see Why properties of an XMLHttpRequest object are only printable ...