Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadRepos() {
- const xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function() {
- if (this.readyState === 4) {
- let divElement = document.getElementById('res');
- divElement.textContent = this.responseText;
- }
- }
- xhttp.open("GET", "https://api.github.com/users/testnakov/repos", true);
- xhttp.send();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement