We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0779c21 commit 8232b2fCopy full SHA for 8232b2f
.devcontainer/api/apiRequest.html
@@ -13,7 +13,7 @@
13
//it's a class so we habve to make it's object first
14
const xhr = new XMLHttpRequest();
15
xhr.open('GET' , requestURl); //but it doesn't continuously track the state
16
- xhr.onreadtstatechange = function(){
+ xhr.onreadytstatechange = function(){
17
console.log(xhr.readyState);
18
if(xhr.readyState === 4){
19
const data = JSON.parse(this.responseText);
0 commit comments