Created
April 13, 2022 19:04
-
-
Save uygardev/4175a8fa50e577a65c7e6e26bff8aae0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = new XMLHttpRequest(); | |
request.open ('GET', 'https://datausa.io/api/data?drilldowns=Nation&measures=Population') | |
request.send(); | |
console.log(request.responseText) | |
request.addEventListener('load', function(){ | |
data = JSON.parse(this.responseText) | |
console.log(data) | |
}) | |
console.log("Execute edilecek satır kalmadı") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment